Python2.7处理中文路径时遇到了些问题

解决方法如下

  1. import os
  2.  
  3. path='./测试'
  4. upath=unicode(path,'utf-8')
  5. dirs=os.listdir(upath)

相关文章: