【发布时间】:2020-04-03 02:41:47
【问题描述】:
执行此操作时出现上述错误:
datetime.strptime(item['dt'], "%Y-%m-%dT%H:%M:%S.%fZ")
即使我尝试:
datetime.strptime(item['dt'], "%Y-%m-%dT%H:%M:%S.%f")
我收到 未转换的数据仍然存在:-04:00 作为我的错误。
我做错了什么?
【问题讨论】:
标签: python mongodb datetime pymongo strptime