Copying a file with another name
本问题已经有最佳答案,请猛点这里访问。
我想把
1 2 | /local/mnt/workspace/user/Automation/swbuild/board/test_new.html /local/mnt/workspace/user/Automation/sw_admin/reports/board/test.html |
使用
1 2 3 | import shutil shutil.copy('/local/mnt/workspace/user/Automation/swbuild/board/test_new.html', '/local/mnt/workspace/user/Automation/sw_admin/reports/board/test.html') |