Python输出不了中文怎么解决
在文件头加上#encoding:utf-8即可。
相关推荐:《Python教程》
# encoding: utf-8 print 'helloworld' print u"学习" print (unicode("学习", encoding="utf-8"))
shell输出:
helloworld 学习 学习
还可以用#-*- coding: UTF-8 -*- 来指定。
您可能感兴趣的文章:
执行python脚本出现乱码怎么解决
电脑不能输入汉字怎么办?中文无法输入解决办法
python中换行符怎么用
Python输出不了中文怎么解决
python怎么卸载不了
python换行符是什么
Windows 8/Win 8.1卡顿怎么?win8系统慢怎么解决
Python中文乱码怎么办
python怎么安装pygame
python安装了怎么用