import timetime1 = "2022-1-2 03:04:05"time2 = ?print(time2)
做了好久一直报错好难受呀
time.strptime("2022-1-2 03:04:05","%Y-%m-%d %H:%M:%S")
import time time1 = "2022-1-2 03:04:05" time2 = time.strptime(time1, "%Y-%m-%d %H:%M:%S") print(time2)