一 更换为绝对路径的写法func1("C:\\Users\\renyc") 二 显式声明字符串不用转义(加r)func1(r"C:\Users\renyc") 三 使用Linux的路径/func1("C:/Users/renyc") 相关文章: