Python學習筆記19:函數式編程

import shutil #copy()複製文件 #格式: shutil.copy(來源路徑,目標路徑) #返回值:返回目標路徑 #拷貝的同時,可以給文件重命名 rst = shutil.copy('/home/dadada/hahaha.huhu', '/home/dadada/hahaha.hoho') print(rst)   #copy2()複製文件,保留原數據(文件信息) #格式:sh
相關文章
相關標籤/搜索