【教程】详解Python正则表达式之: (?P<name>…) named group 带命名的组
crifan 13年前 (2012-11-12) 19185浏览 2评论
Python 2.7的手册中的解释: (?P<name>...) Similar to regular parentheses, but the substring matched by the group is a...
crifan 13年前 (2012-11-12) 19185浏览 2评论
Python 2.7的手册中的解释: (?P<name>...) Similar to regular parentheses, but the substring matched by the group is a...
crifan 13年前 (2012-11-12) 8426浏览 1评论
Python 2.7的手册中的官方解释是: (?P=name) Matches whatever text was matched by the earlier group named name. 下面就简单解释解释此含义。 1.首先,使用此...
crifan 13年前 (2012-11-08) 2004浏览 0评论
之前虽然折腾了一些Python代码:crifanLib.py,BlogsToWordpress,recSongtasteMusic,但是,也都是边写边学,没有系统学习过Python。 所以现在打算抽空去完整的学习一下Python。 选用的教程是比较经...
crifan 13年前 (2012-11-07) 17050浏览 28评论
之前已经介绍过了网络相关的一些基础知识了: 【整理】关于抓取网页,分析网页内容,模拟登陆网站的逻辑/流程和注意事项 以及,简单的网页内容抓取,用Python是如何实现的: 【教程】抓取网并提取网页中所需要的信息 之 Python版 现在接着来介绍,如...
crifan 13年前 (2012-11-05) 9366浏览 0评论
【问题】 写了个脚本:BlogsToWordPress,里面后来加上了: #------------------------------------------------------------------------------ def logR...
crifan 13年前 (2012-11-05) 7379浏览 0评论
Python的手册中,是这么解释的: '|' A|B, where A and B can be arbitrary REs, creates a regular expression that will match either A or B....
crifan 13年前 (2012-11-01) 2553浏览 3评论
对于northcamel在BlogsToWordPress中提出的需求,希望添加点点轻博客搬家到wordpress的支持,虽然不太同意其看法,但是这样的功能,还是可以有的。 此处简单记录此过程和一些事项。 1.话说,点点轻博客,支持免费域名,所以除了...
crifan 13年前 (2012-10-30) 19460浏览 3评论
想要用python处理csv文件。 去查了下,python中本身就自带csv模块。 然后参考在线手册: http://docs.python.org/2/library/csv.html 去试试。 【用python生成csv】 1. 按照手册的例子,...
crifan 13年前 (2012-10-29) 9661浏览 0评论
【问题】 在Python中,试图用: foundMainUrlOrPermalink = re.search("(?P<blogIdMainUrl>http://blog\.tianya\.cn/blogger/blog_mai...
crifan 13年前 (2012-10-23) 19792浏览 1评论
想要试试,在Python中,如何将数据,导出为Excel,即把数据写入到新生成的excel文件。 1.网上看到: Working with Excel Files in Python 其中包括,Python中,如何读取excel文件,如何写入数据到...