Python字符串、时间戳、datetime时间相关转换
摘要:
总结的时间转换函数 # datetime时间转为字符串 def Changestr(datetime1): str1 = datetime1.strftime('%Y-%m-%d %H:%M:%S') return str1 # 字符串时间转为时间戳 def Changetime(str1): Un 阅读全文
posted @ 2018-06-17 18:43 星河赵 阅读(602) 评论(0) 推荐(0)
浙公网安备 33010602011771号