上例子:time='Friday, November 18, 2016',将其转换为标准格式: time_format = datetime.datetime.strptime(time, '%A, %B %d, %Y') import time import datetime time='Friday, November 18, 2016' time_format=datetime.datetime.strptime(time,'%A, %B %d, %Y') print time_forma