Python
文章平均质量分 78
fallingboats
这个作者很懒,什么都没留下…
展开
-
Python 3.2 访问Mysql 5.5
1. 安装Eclipse Juno http://www.eclipse.org/downloads/2. 安装Mysql 5.5 http://www.mysql.com3. 安装Mysql客户端Navicat http://www.navicat.com/ 4. 为Eclipse安装Python插件Pydev http://pydev.org/, update site: ht原创 2012-07-22 19:53:58 · 438 阅读 · 0 评论 -
Python 3.2 获取中文网页
安装BeautifulSoup http://www.crummy.com/software/BeautifulSoup/编写代码如下import urllib.requestimport sysfrom bs4 import BeautifulSoupfrom html.parser import HTMLParsertype = sys.getfilesystemenc原创 2012-07-23 07:12:19 · 1314 阅读 · 0 评论 -
how to get multiple matches using python re
url = "document.write('Test 1'.replace('','').replace('',''));document.write('Test 2);"import rep = re.compile(r'>(?P[^', re.I|re.U)m = p.match(url)for m3 in p.finditer(url): value = m3.g原创 2012-08-29 17:32:23 · 369 阅读 · 0 评论