摘要: import os def rename_folders(root_dir, level=1, parent_prefix=''): # 计数器,用于生成唯一的名称 counter = 1 # 遍历文件夹 for dirpath, dirnames, filenames in os.walk(roo 阅读全文
posted @ 2024-04-30 11:03 淋哥 阅读(85) 评论(0) 推荐(0) 编辑