摘要: 文件目录的基本操作 """ @Time : 2022/4/30 15:23 @Author : Jason Chen @File : demo_dir.py @desc : 操作目录 """ import os import shutil # 文件重命名和文件删除 os.rename("./test 阅读全文
posted @ 2022-04-30 16:31 jasonchenYT 阅读(88) 评论(0) 推荐(0) 编辑
摘要: #time的基本使用 import time now = time.time() print(int(now)) now_tuple = time.localtime(now) print(now_tuple) time.sleep(1) # 格式化 now_str = time.strftime( 阅读全文
posted @ 2022-04-30 16:27 jasonchenYT 阅读(36) 评论(0) 推荐(0) 编辑