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
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