python os模板操作文件和目錄常用方法 python 常用操作文件和目錄方法: 獲得當前python腳本工作的目錄路徑:os.getcwd() 返回指定目錄下的所有文件和目錄名:os.listdir()。例如:返回C盤 ...