python 爬虫数据时间转换格式

from datetime import datetime
a = '2018/9/18 10/10'
print(datetime.strptime(a,'%Y/%m/%d %H/%M'))
》》2018-09-18 10:10:00
posted @ 2018-10-23 10:09  三冬三夏  阅读(176)  评论(0编辑  收藏  举报