收集一些PYTHON的资料

来源:互联网 发布:爆裂鼓手知乎 编辑:程序博客网 时间:2024/05/02 01:38

Python Tutorial中文版2.4

http://man.lupaworld.com/content/develop/python_2_4_tut/html/index.html

识别文字的编码模块:

http://chardet.feedparser.org/docs/usage.html#usage.advanced 

获得机器的internet IP:

>>> import re,urllib2
>>> re.search('/d+/./d+/./d+/./d+',urllib2.urlopen("http://www.hereismyip.com").read()).group()
'58.49.245.149'

原创粉丝点击