windows7




python 2.7.14
sublime text
- 폴더구조와 파일

에러발생 #1

에러발생 #2

에러해결

#-*- encoding: utf8 -*-
import os
for f in os.listdir(u's:/한글폴더'):
print(f)
혹시나 싶어서 python 3.6.4 을 깔아서 다시 실행해보니 encoding , u 이런거 안해줘도 잘 읽어온다.




덧글