python2에서 encoding...

이한별·2023년 3월 22일

누군가 아직 python2를 쓰고 있갰지요.?
없길 바라며..

한글을 아무리 해도 인식이 안되었다,,

#-*- coding: utf-8 -*-

이거도 안되고

뭐 여러 개 다 해보았는데

#-*- coding: utf-8 -*-
import sys
reload(sys)
sys.setdefaultencoding('utf-8')

이것만 됨

profile
life is an egg

0개의 댓글