你忘了秒,你需要dt.datetime.strptime(date_1, "%Y-%m-%dT%H:%M:%S+0000")date_1您可以通过连续删除部分以及格式字符串来轻松调试这样的东西:dt.datetime.strptime("2019-08-02T07:00:00+0000", "%Y-%m-%dT%H:%M+0000")#errordt.datetime.strptime("2019-08-02T07:00:00", "%Y-%m-%dT%H:%M")#unconverted data remains: :00dt.datetime.strptime("T07:00:00", "T%H:%M")#unconverted data remains: :00dt.datetime.strptime("07:00:00", "%H:%M")#now it should be obvious