时间格式化

cooolr 于 2021-10-20 发布

pip install python-dateutil

from dateutil import parser
ctime = parser.parse("06 August 2019 14:39")
ctime = ctime.strftime("%Y-%m-%d %H:%M:%S")