时间数据'Jun 02 16:06:57.451'
与格式'%m %d %H:%M:%S.%f'
不匹配
datetime.strptime(input_time, "%m %d %H:%M:%S.%f")
Change the format to exactly the way you're supplying the date:
datetime.strptime('Jun 02 16:06:57.451',"%b %d %H:%M:%S.%f")
datetime.datetime(1900, 6, 2, 16, 6, 57, 451000)
Format types are here: Formats
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.