python:time模块用法

time模块下有两种时间表示方法: 第1种是:时间戳的方式。是基于1970年1月1日0时0分0秒的偏移。浮点数。 第2种是:struct_time()类型的表示方法。gmtime()和localtime()可以将时间戳显示为struct_time()类型。 第3种是:格式化时间。其中strftime()函数可以把struct_time()时间格式化显示。 strptime()函数可以把时间字符串解
相关文章
相关标签/搜索