使用dateutil:
import dateutil.parser as parsertext = 'Thu, 16 Dec 2010 12:14:05 +0000'date = parser.parse(text)print(date.isoformat())# 2010-12-16T12:14:05+00:00
欢迎分享,转载请注明来源:内存溢出
使用dateutil:
import dateutil.parser as parsertext = 'Thu, 16 Dec 2010 12:14:05 +0000'date = parser.parse(text)print(date.isoformat())# 2010-12-16T12:14:05+00:00
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)