易截截图软件、单文件、免安装、纯绿色、仅160KB

Python中的正则表达式基础

$  字符串的末尾
^  字符串的开始
\b  字符的边界
前缀t  字符串中的反斜线(所有字符)不转义
?  可选地匹配(位于之前的)单个字符
()  改变优先级,作为一个整体,一个组
|  或者
(A|B)  精确匹配A或B中的一个
{n,m}  匹配(位于之前的字符)n到m次
VERBOSE  松散正则表达式(re.VERBOSE)常量,忽略空格换行等,可用#作注释
{n}  精确匹配n次
\d  十进制字符,(0-9中的一个)
\D  任意不为十进制字符的字符,为\d取反
+  1次或者任意多次(大于0就行)
*  0次或者任意多次


相关文档:

Python入门的36个例子 之 35

源代码下载:下载地址在这里
# 039
while True:
try:
x = int(raw_input('Input a number:'))
y = int(raw_input('Input a number:'))
z = x / y
except ValueError, ev:
print 'That is not a valid number.', ev
except ZeroDivisionError, ez:
print 'Di ......

在Windows上安装Python+MySQL 的常见问题及解决方法

验证是否已经安装了MySQLdb:
==========================================================
d:\usr\local\Python25>python
Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)] onwin32
Type "help", "copyright", "credits" or "license" for ......

Python Firewall Win32 (pyfw

Python Firewall Win32 (pyfw-win32)
pyfw-win32是一个可用Python脚本开发数据包过滤(防火墙)的模块。底层使用C语言编写的NDIS中间层驱动(NDIS IMD)提供支持,上层提供Python开发接口。可用Python脚本处理所有逻辑问题,而不必关心底层实现,达到快速、灵活开发的目的。
Google 项目托管:
http://code.google.com/p/py ......

Best Replica Gucci Galaxy Python Hobo Bag

ZoundryDocument
Python skin is known for its color variations and for its elasticity; it is
the warmest leather of the season and ideal for the manufacture of many luxury
goods. Sometimes natural patterns can be hidden when they're done in black, but
the finish here has a bit of a shine to it ......

Python库详解之网络(2)

昨天试了下用HTMLParser类来解析网页,可发现结果并不理想。不管怎么说,先写下过程,希望后来人能在此基础上解决我所遇到的问题。
写了2套解决方案,当然这2套只能对特定网站有效。我这里主要说明下对BBC主页www.bbc.co.uk和对网易www.163.com的解析。
对于BBC:
这套要简单得多,可能是该网页的编码比较标准吧
import ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号