目录名中包含中文
1 | root_dir = "D:/工作留档" |
文件内容中包含中文
1 | info_path = os.path.join(root_dir, "info_file") |
清空目录
1 | plot_dir = os.path.join(root_dir, "plot") |
计数文件夹中内容
1 | def count_dir(root_dir): |
处理文件夹中内容
1 | def check_dir(root_dir, info_path, checked_items, total_items): |