python 移动文件夹

xxx@ddd:~$ mkdir testa testb

>>> import shutil
>>> shutil.move("/home/xxx/testa","/home/xxx/testb")
>>> exit()

xxx@ddd:~$ ls testb
testa

猜你喜欢

转载自www.cnblogs.com/sea-stream/p/10337563.html