0
>>> dt = '1/1/2016 00:09:55' # It supposes to be month day year
>>> from datetime import datetime
dtp = datetime.strptime(dt, '%m/%d/%y %H:%M:%S')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
ValueError: time data '1/1/2016 00:09:55' does not match format '%m/%d/%y %H:%M:%S'
如何解析此時間數據?謝謝。ValueError:time data'1/1/2016 00:09:55'與格式'%m /%d /%y%H:%M:%S'不匹配'