# _*_ coding:utf-8 _*_ #xiaohei.python.seo.call.me:) #win+python2.7.x import urllib2,re for 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 " "
希望本文所述对大家的Python程序设计有所帮助。
Copyright © 2019- hids.cn 版权所有 赣ICP备2024042780号-1
违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务