dt = datetime.datetime.strptime(string_date, fmt)
fmt 的格式说明如下:
https://docs.python.org/2/library/datetime.html#strftime-and-strptime-behavior
dt = datetime.datetime.strptime(string_date, fmt)
fmt 的格式说明如下:
https://docs.python.org/2/library/datetime.html#strftime-and-strptime-behavior
转载于:https://www.cnblogs.com/qingyuanjushi/p/7222760.html