import os rename(old,new):只能重命名文件名renames(old,new): 文件名,路径,均可以重命名 转载于:https://www.cnblogs.com/LS1314/p/8504632.html