t.strftime('%m月%d %H:%M')
<class 'datetime.datetime'>
Traceback (most recent call last):
File "D:/pythonworks/xinkongxinxi1/comment_dao.py", line 28, in <module>
tstr = t.strftime('%m月%d %H:%M')
UnicodeEncodeError: 'locale' codec can't encode character '\u6708' in position 2: encoding error
1个回答
我要回答