datetime对象的timetuple方法返回一个 time.struct_time对象,即 time.localtime() 所返回的类型。
datetime.timetuple()
无
time.struct_time对象
>>> from datetime import datetime
>>> now = datetime.now()
>>> now.timetuple()
time.struct_time(tm_year=2022, tm_mon=6, tm_mday=2, tm_hour=8, tm_min=10, tm_sec=50, tm_wday=3, tm_yday=153, tm_isdst=-1)
QQ交流群: 211426309