转载自:http://blog.csdn.net/yukin_xue/article/details/9769803
Python直接读取中文路径的文件时失败,可做如下处理:
dst3 = "D:/test/测试文件夹.txt"
uipath = unicode(dst3 , "utf8")
然后用"uipath"经过编码后的路径去open()或者:
shutil.copyfile(src,uipath)
就可以了
转载自:http://blog.csdn.net/yukin_xue/article/details/9769803
Python直接读取中文路径的文件时失败,可做如下处理:
dst3 = "D:/test/测试文件夹.txt"
uipath = unicode(dst3 , "utf8")
然后用"uipath"经过编码后的路径去open()或者:
shutil.copyfile(src,uipath)
就可以了