摘要: 1. 获取当前时间 import time now = time.strftime("%Y-%m-%d %H:%M:%S") # 获取当前时间,并用指定格式显示 print(now) # 打印:2021-06-29 11:27:14 2. 时间戳timestamp转换为指定格式 例如:将'16248 阅读全文
posted @ 2021-06-29 14:27 小虫虫大虫虫 阅读(695) 评论(0) 推荐(0) 编辑