【发布时间】:2019-11-21 10:04:16
【问题描述】:
我正在尝试使用时间库解析我的日期字符串。但我在解析时出错。
# Example is 'In 0 days 23:07:56'
client['license_time_start'] = time.strptime('In 0 days 23:07:56', 'In %d days %H:%M:%S')
ValueError: 时间数据 'In 00 days 23:07:56' 与格式 'In %d days %H:%M:%S' 不匹配
【问题讨论】:
-
您能否将
client['license_time']的值添加到您的问题中 -
是的,我添加了。谢谢
-
错误代码不匹配
标签: python python-3.x time