写一个hello,world!开始python之旅
# -*- coding=utf-8 -*-
import sys
reload(sys)
sys.setdefaultencoding('utf8')
if True:
print "hello,world!"
else:
print "haha"
运行 python test.py 可见hello
写一个hello,world!开始python之旅
# -*- coding=utf-8 -*-
import sys
reload(sys)
sys.setdefaultencoding('utf8')
if True:
print "hello,world!"
else:
print "haha"
运行 python test.py 可见hello