摘要: 1.定义一个时间戳转换成格式化时间的函数import time def timestamp_to_fomat(timestamp= None,format ='%Y-%m-%d %H:%M:%S' ): #1.默认返回当前格式化好的时间 #2.传入时间戳的话,把时间戳转换成格式化好的时间,返回 if 阅读全文
posted @ 2018-05-09 23:06 天台月光 阅读(143) 评论(0) 推荐(0) 编辑