import os 對文件目錄的操作 os.getcwd() 獲得當(dāng)前路徑 path = "http:///" os.chdir(path) 移動到path路徑位置 os.rename("","") 重命名 os.remove("") 刪除某個文件