0
我看到几个问题,有人问起同样的问题,但没有一个答案帮助我。Python 2.5以datetime.strptime格式失败
我收到此错误:
pydev debugger: starting
Traceback (most recent call last):
>>>
File "/usr/local/zend/apache2/htdocs/pyth/src/conn.py", line 23, in <module>
userConnDate = datetime.strptime(data[1] + ' ' + data[2], "%y-%m-%d %H:%M:%S")
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/_strptime.py", line 330, in strptime
(data_string, format))
ValueError: time data did not match format: data=2010-03-11 08:35:25 fmt=%y-%m-%d %H:%M:%S
它看起来好像没什么问题,什么是Python看到我不?
感谢您的时间。