# 参考:https://www.cnblogs.com/dplearning/p/7388659.html#4018373 import dateutil.parser def getDateTime(s): d = dateutil.parser.parse(s) return d print(getDateTime('19/May/2017 04:10:06 +0000'))