dt = datetime.datetime.strptime(string_date, fmt)
fmt 的格式说明如下:
https://docs.python.org/2/library/datetime.html#strftime-and-strptime-behavior
qingyuanjushi 2017-07-22 20:57 原文
dt = datetime.datetime.strptime(string_date, fmt)
fmt 的格式说明如下:
https://docs.python.org/2/library/datetime.html#strftime-and-strptime-behavior