看代码吧~ import pymongo from dateutil import parser dateStr = \"2019-05-14 01:11:11\" myDatetime = parser.parse(dateStr)