python——time模块用法

time模块下有两种时间表示方法:python 第一种是:时间戳的方式。是基于1970年1月1日0时0分0秒的偏移。浮点数。函数 第二种是:struct_time()类型的表示方法。gmtime()和localtime()能够将时间戳显示为struct_time()类型。spa 第三种是:格式化时间。其中strftime()函数能够把struct_time()时间格式化显示。code strpti
相关文章
相关标签/搜索