立即学习:https://edu.csdn.net/course/play/26755/340170?utm_source=blogtoedu
通过time.localtime函数可以直接获取详细的时间信息,是一个time.struct_time类