【教程】详解Python正则表达式之:re.UNICODE re.U 统一码标志
crifan 12年前 (2012-11-20) 7652浏览 0评论
Python 2.7手册中的官方解释是: re.U re.UNICODE Make \w, \W, \b, \B, \d, \D, \s and \S dependent on the Unicode character properties...
在路上on the way - 走别人没走过的路,让别人有路可走
crifan 12年前 (2012-11-20) 7652浏览 0评论
Python 2.7手册中的官方解释是: re.U re.UNICODE Make \w, \W, \b, \B, \d, \D, \s and \S dependent on the Unicode character properties...
crifan 12年前 (2012-11-19) 52707浏览 3评论
都差点忘了说了,在看下面所有的内容之前,对于python版本不了解的,请一定先看看这个: 【整理】总结Python2(Python 2.x版本)和Python3(Python 3.x版本)之间的区别 然后根据情况,选择自己需要的python版本,然...
crifan 12年前 (2012-11-19) 3300浏览 0评论
什么是域名 – 网上的家所在的小区 比如我的网站 www.crifan.com 中的 crifan.com 就是域名。 该域名旗下,可以建立各种,属于自己的资源,比如: www:万维网,即普通的网站,完整的网址为:www.crifan....
crifan 12年前 (2012-11-19) 5813浏览 0评论
已经听说了,Python 3.x,对于文件的编码,支持的很好了,很多时候都可以自动检测,并正确存储为unicode字符串了。 并且在windows 的cmd中,也都可以正常输出显示,不会出现编码错误了。 所以,对此部分,特意去测试一下,通过代码,得到...
crifan 12年前 (2012-11-19) 4338浏览 0评论
Python 2.7手册中的官方解释为: [] Used to indicate a set of characters. Characters can be listed individually, or a range of charact...
crifan 12年前 (2012-11-19) 5289浏览 3评论
之前一直使用Notepad++,作为自己的文本编辑器,主要用于各种开发。 由于觉得其的确非常好用,所以专门写了文章去推荐之: 【crifan推荐】轻量级文本编辑器,Notepad最佳替代品:Notepad++ 后来,无意间,得知有个Sublime的文...
crifan 12年前 (2012-11-19) 13580浏览 1评论
【现象】 很多Python初学者,在安装了最新版本的Python 3.x版本,比如Python 3.2之后, 去参考别人的代码(基于Python 2.x写的教程),去利用print函数,打印输出内容时,结果却遇到print函数的语法错误: Synta...
crifan 12年前 (2012-11-19) 13769浏览 5评论
首先要说的是,Python的版本,目前主要分为两大类: Python 2.x的版本的,被称为Python2:是目前用的最广泛的,比如Python 2.7.3。 Python 3.x的版本的,被称为Python3:是最新的版本的,比如Python 3....
crifan 12年前 (2012-11-19) 5323浏览 0评论
Python 2.7的手册中的官方解释为: '*' Causes the resulting RE to match 0 or more repetitions of the preceding RE, as many repetitions a...
crifan 12年前 (2012-11-19) 8608浏览 0评论
Python 2.7手册中的官方解释为: '$' Matches the end of the string or just before the newline at the end of the string, and in MULTILIN...