from datetime import datetime a = '20190520' 将a转变为datetime对象的语句正确的是
(A)datetime.strptime(a,'%Y%m%d')
(B)datetime.strptime(a,'%y%m%d')
(C)datetime.strptime(a,'&y&m&d')
(D)datetime.strptime(a,'$Y$m$d')
参考答案
继续答题:下一题
(A)datetime.strptime(a,'%Y%m%d')
(B)datetime.strptime(a,'%y%m%d')
(C)datetime.strptime(a,'&y&m&d')
(D)datetime.strptime(a,'$Y$m$d')