Python WindowsError: [Error 3]

Python WindowsError: [Error 3] The system cannot find the file specified when trying to rename解决:文件路径没有找到,检查路径是否存在,是否符合要求,是否有空格啥的可以利用一个判断语句,验证路径是否存在,若不存在,创建文件路径:path=”文件路径”nif not os.path.exists(path)…