摘要: http://topic.csdn.net/u/20120110/12/42f82c4d-d39a-40df-a10a-d31cc0dd8288.htmlPython codeimport re s ="""ddd[AA]ff[/AA]hh[BB]G G[/BB]TT[AA]66[/AA][BB]Dd[/BB]f""" val = re.sub(r'\[BB\](.*?)\[/BB\]', "", s) print val 结果如下: ddd[AA]ff[/AA]hh[BB]G G[/BB]TT[A 阅读全文
posted @ 2012-05-29 17:48 Semmin 阅读(444) 评论(0) 推荐(0) 编辑
摘要: 作为一个Python菜鸟,之前一直懵懂于urllib和urllib2,以为2是1的升级版。今天看到老外写的一篇《Python: difference between urllib and urllib2》才明白其中的区别。You might be intrigued by the existence of two separate URL modules in Python -urllibandurllib2. Even more intriguing: they are not alternatives for each other. So what is the difference be 阅读全文
posted @ 2012-05-29 15:04 Semmin 阅读(537) 评论(0) 推荐(0) 编辑
摘要: http://blog.donews.com/limodou/archive/2005/11/28/641257.aspxhttp://wiki.woodpecker.org.cn/moin/zspyPython PycURL 网络编程 http://www.pythonclub.org/python-network-application/pycurl1.1. 相关文献PycURL简单学习 http://blog.donews.com/limodou/archive/2005/11/28/641257.aspxpython中的pycurl模块学习 https://forum.evilocta 阅读全文
posted @ 2012-05-29 15:01 Semmin 阅读(137) 评论(0) 推荐(0) 编辑