python 移动文件夹

 

xxx@ddd:~$ mkdir testa testb

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

xxx@ddd:~$ ls testb
testa

 

posted @ 2019-01-30 12:16  anobscureretreat  阅读(1039)  评论(0编辑  收藏  举报