![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
崔旭旭
严谨负责,执行力和抗压能力强,具备良好的协调和学习能力
展开
-
Python错误: SyntaxError: Non-ASCII character
http://blog.csdn.net/cscmaker/article/details/8754820 (1)问题描述 在写Python代码的过程中,有用到需要输出中文的地方,但是运行后发现上述错误。 SyntaxError: Non-ASCII character '\xe4' in file ./common.py on line 2, but no encoding d...原创 2016-05-30 17:38:24 · 137 阅读 · 0 评论 -
Python中正则表达式对中文的匹配问题
http://blog.csdn.net/freedomqx/article/details/6237654 今天在用Python匹配中文的时候出了问题,要么匹配不到,要么乱码,搜索了一下,成功完成,写了一小段测试代码如下: [python] view plain copy import re source = "s2f程序员杂志一2d3程序员杂...原创 2016-05-30 17:42:27 · 172 阅读 · 0 评论 -
简单说说python import与from...import....
http://www.iplaypython.com/jinjie/from-import.html 在前面的文章中给大家讲解过一种导入模块的方法 import ,今天介绍一种经常会使用到的方法 from import。 比如我们导入一个数学计算的模块 math: >>> import math >>> print math <module '...原创 2016-06-01 11:02:10 · 223 阅读 · 0 评论