Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何通过在目标目录中添加前缀(finger.dat_temp)来更改 src 目录中输入文件(finger.dat)的名称)同时将多个文件从一个目录复制到另一个目录?
for file in list: shutil.move(file, os.path.join(dest_dir, file + "_temp"))