摘要: import time print(time.strftime("%Y%m%d %H:%M:%S")) 直接打印 import time def time_str(): fmt = "%Y%m%d %H:%M:%S" # 定义时间显示格式 Date = time.strftime(fmt) prin 阅读全文
posted @ 2021-06-13 21:02 阿瑶丫 阅读(108) 评论(0) 推荐(1) 编辑