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'
本文提供了Python教程2.4版的链接资源,并介绍了一个用于识别文本编码的模块Chardet,此外还分享了一段获取本机Internet IP地址的Python代码。
3602

被折叠的 条评论
为什么被折叠?



