python2.7;解决中文无法正常显示问题
2016-03-26 15:15
876 查看
# coding=utf-8 #第一行添加,以下8种写法,默认ascii编码所以要重定义编码格式以支持中文 # coding= utf-8 # encoding=utf-8 # encoding= utf-8 # -*- coding: utf-8 -*- # -*- coding:utf-8 -*- # -*- encoding: utf-8 -*- # -*- encoding:utf-8 -*- # 注意python 对空格敏感以下为错误写法 # coding = utf-8 # coding =utf-8 # encoding = utf-8 # encoding =utf-8 # -*- coding : utf-8 -*- # -*- coding :utf-8 -*- # -*- encoding : utf-8 -*- # -*- encoding :utf-8 -*- print "中文" # 输出: # 中文 # 请按任意键继续. . .
相关文章推荐
- 安装pygraphviz遇到的问题解决办法。
- python面试题
- 动手写一个Python Web 框架学习笔记 - 相关依赖学习(2)
- python--基础学习(六)sqlite数据库基本操作
- Python学习:异步IO:协程和asyncio
- Pyhton: abs() 函数
- Python_模拟登陆新浪微博
- ubuntu下升级python
- Windows下IPython的配置安装
- Python在线笔试琐碎
- python 输出冒号;引号嵌套问题
- 中文Windows下用Python修改MAC地址
- 练习5:python的格式化字符
- 【资源汇集.转】Python 学习资源
- 17. Letter Combinations of a Phone Number
- python从零安装
- python--函数每天熟悉一个
- Python and or ?A:B
- Python——sorted
- Json概述以及python对json的相关操作