mytime = time.strftime('%Y-%m-%d %H:%M:%S',(2021,11,4,9,30,0,3,308,-1))D
import time mytime = time.strftime("year:%Y,moth:%m,day:%d,%H:%M:%S",(2021,11,4,9,30,0,3,308,-1)) print(mytime)
结果:
下面那个选A, B