我查看了Python os界面,但无法找到移动文件的方法.我如何$ mv ...在Python中完成相同的操作?
os
$ mv ...
>>> source_files = '/PATH/TO/FOLDER/*' >>> destination_folder = 'PATH/TO/FOLDER' >>> # equivalent of $ mv source_files destination_folder
python file file-handling
file ×1
file-handling ×1
python ×1