python 友情链接检查,python友情链接,# _*_ coding
python 友情链接检查,python友情链接,# _*_ coding
# _*_ coding:utf-8 _*_#xiaohei.python.seo.call.me:)#win+python2.7.ximport urllib2,refor i, line in enumerate(open('link.txt')): url_ = line.strip() print i,line html = urllib2.urlopen(url_).read() cou = html.count('360buy.com' or 'jd.com') if cou >= 0: print '有' else: print '没有' print "\\n\\n"#该片段来自于http://byrx.net
相关内容
- 随机产生迷宫,产生迷宫,Python语言: 随机
- 用Python开发MySQL Workbench的插件:自动创建外键,python
- Python thrift使用示例,pythonthrift示例,首先需要安装相关
- Logistic Regression,logisticregression,二元分类。自己写的其
- python.从一个文本文件中选出使用频率最多的若干个单词
- python在一个线程中杀死另外一个线程,python另外一个
- python逐行读取子进程的输出代码,python逐行输出代码
- 用supervisor管理nginx+uwsgi部署django项目,nginxdjango,直接使
- 用supervisor管理uWSGI,supervisoruwsgi,Supervisor,
- python2.7 + webpy 的bug SystemError: ../Objects/tupleobject.c:142: b
评论关闭