Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个从 github api v3 解码 json 的 python 应用程序。解码后,我的 unicode 日期/时间字符串如下所示:
'2011-12-11T22:37:18Z'
如何使用 strftime 之类的东西来格式化它?
import datetime datetime.datetime.strptime('2011-12-11T22:37:18Z', '%Y-%m-%dT%H:%M:%SZ')`