2018年12月1日

Python time模块 返回格式化时间

摘要: 常用命令 strftime strptime 将格式字符串转化成struct_time. 该函数是time.strftime()函数的逆操作。time strptime() 函数根据指定的格式把一个时间字符串解析为时间元组。所以函数返回的是struct_time对象。 参数: string :时间字 阅读全文

posted @ 2018-12-01 11:18 缺陷催生进化,完美预示终结 阅读(846) 评论(0) 推荐(0) 编辑

导航