python的时间模块
时间表示的几种形式 1.时间戳 2.字符串时间 3.元组类型的时间 1.时间戳 print ( time . time ( ) ) 结果 2.字符串时间 print ( time . ctime ( ) ) 结果 3.元组时间 print ( time . localtime ( ) ) info = time . localtime ( ) print ( info ) print ( info . tm_year ) print ( info . tm_mon ) 结果 来源: CSDN 作者: 一坨小红花 链接: https://blog.csdn.net/qq_45652989/article/details/103951408