Python是一种面向对象的解释型计算机程序设计语言,由荷兰人Guido van Rossum于1989年发明,Python的定位是“优雅”、“明确”、“简单”,所以Python程序看上去总是简单易懂,初学者学Python,不但入门容易,而且将来深入下去,可以编写那些非常非常复杂的程序。

来开搞今天的python知识分享

本文实例讲述了Python爬虫实现网页信息抓取功能。分享给大家供大家参考,具体如下:

首先实现关于网页解析、读取等操作我们要用到以下几个模块

import urllib
import urllib2
import re

我们可以尝试一下用readline方法读某个网站,比如说百度

def test():
  f=urllib.urlopen('http://www.baidu.com')
  while True:
   firstLine=f.readline()
   print firstLine

下面我们说一下如何实现网页信息的抓取,比如说百度贴吧

我们大概要做几件事情:

首先获取网页及其代码,这里我们要实现多页,即其网址会改变,我们传递一个页数

  def getPage(self,pageNum):
     try:
        url=self.base<a href="http://www.cfei.net/archives/tag/url" title="浏览关于“URL”的文章" target="_blank" class="tag_link">URL</a>+self.seeLZ+'&amp;pn='+str(pageNum)
        #创建request对象
        request=urllib2.Request(url)
        response=urllib2.urlopen(request)
        #print 'URL:'+url
        return response.read()
     except Exception,e:
        print e

之后我们要获取小说内容,这里咱们分为标题和正文。标题每页都有,所以我们获取一次就好了。

我们可以点击某网站,按f12查看他的标题标签是如何构造的,比如说百度贴吧是…………</p> <p>那我们就匹配<code>reg=re.compile(r'<title>(.*?)。')</code>来抓取这个信息</p> <p>标题抓取完我们要开始抓去正文了,我们知道正文会有很多段,所以我们要循环的去抓取整个items,这里我们注意</p> <p>对于文本的读写操作,一定要放在循环外。同时加入一些去除超链接、<br />等机制</p> <p>最后,我们在主函数调用即可</p> <p>完整代码:</p> <pre class="brush: python; title: ; notranslate" title=""> # -*- coding:utf-8 -*- import sys reload(sys) sys.setdefaultencoding('utf8') #爬虫之网页信息抓取 #需要的函数方法:urllib,re,urllib2 import urllib import urllib2 import re #测试函数-&gt;读取 #def test(): # f=urllib.urlopen('http://www.baidu.com') # while True: # firstLine=f.readline() # print firstLine #针对于百度贴吧获取前十页楼主小说文本内容 class BDTB: def __init__(self,baseUrl,seeLZ): #成员变量 self.baseURL=baseUrl self.seeLZ='?see_lz='+str(seeLZ) #获取该页帖子的代码 def getPage(self,pageNum): try: url=self.baseURL+self.seeLZ+'&amp;pn='+str(pageNum) #创建request对象 request=urllib2.Request(url) response=urllib2.urlopen(request) #print 'URL:'+url return response.read() except Exception,e: print e #匹配标题 def Title(self): html=self.getPage(1) #compile提高<a href="http://www.cfei.net/archives/tag/%e6%ad%a3%e5%88%99" title="浏览关于“正则”的文章" target="_blank" class="tag_link">正则</a>匹配效率 reg=re.compile(r'&lt;title&gt;(.*?)。') #返回list列表 items=re.findall(reg,html) f=open('output.txt','w+') item=('').join(items) f.write('\t\t\t\t\t'+item.encode('gbk')) f.close() #匹配正文 def Text(self,pageNum): html=self.getPage(pageNum) #compile提高正则匹配效率 reg=re.compile(r'&quot;d_post_content j_d_post_content &quot;&gt;(.*?)&lt;/div&gt;') #返回list列表 items=re.findall(reg,html) f=open('output.txt','a+') #[1:]切片,第一个元素不需要,去掉。 for i in items[1:]: #超链接去除 removeAddr=re.compile('&lt;a.*?&gt;|&lt;/a&gt;') #用&quot;&quot;替换 i=re.sub(removeAddr,&quot;&quot;,i) #&lt;br&gt;去除 i=i.replace('&lt;br&gt;','') f.write('\n\n'+i.encode('gbk')) f.close() #调用入口 baseURL='http://tieba.baidu.com/p/4638659116' bdtb=BDTB(baseURL,1) print '爬虫正在启动....'.encode('gbk') #多页 bdtb.Title() print '抓取标题完毕!'.encode('gbk') for i in range(1,11): print '正在抓取第%02d页'.encode('gbk')%i bdtb.Text(i) print '抓取正文完毕!'.encode('gbk') </pre> <p><span style="color: #800000"><strong>PS:这里再为大家提供2款非常方便的正则表达式工具供大家参考使用:</strong></span></p> <p><span style="color: #ff6600"><strong>JavaScript正则表达式在线测试工具:<br /> </strong></span>http://tools.jb51.net/regex/javascript</p> <p><span style="color: #ff6600"><strong>正则表达式在线生成工具:<br /> </strong></span>http://tools.jb51.net/regex/create_reg</p> <p>更多关于Python相关内容可查看本站专题:《Python正则表达式用法总结》、《Python数据结构与算法教程》、《Python Socket编程技巧总结》、《Python函数使用技巧总结》、《Python字符串操作技巧汇总》、《Python入门与进阶经典教程》及《Python文件与目录操作技巧汇总》</p> <p>希望本文所述对大家Python程序设计有所帮助。</p> <p>好了,今天就搞到这里,后续会有更多的精彩的python内容分享给大家。</p> </div> <div class="shareBox clearfix"> <p> <a href="javascript:;" data-action="ding" data-id="92827" id="Addlike" class="action sharebtn like" title="喜欢"> <span class="icon s-like"><i class="icon-heart"></i><i class="icon-heart-filled"></i> 喜欢 </span> (<span class="count num">0</span>) </a> <a href="javascript:;" class="sharebtn pay-author"><i class="icon-cup"></i> 打赏</a> <a href="javascript:;" class="sharebtn J_showAllShareBtn"><i class="icon-forward"></i> 分享</a> </p> <div class="socialBox"> <div class="action-share bdsharebuttonbox"><a class="share-links bds_tsina icon-weibo" data-cmd="tsina"></a><a class="share-links bds_weixin icon-wechat" data-cmd="weixin"></a><a class="share-links bds_tqq icon-tencent-weibo" data-cmd="tqq"></a><a class="share-links bds_tqf icon-qq" data-cmd="tqf"></a><a class="share-links bds_mail icon-mail" data-cmd="mail"></a><a class="share-links bds_copy icon-link" data-cmd="copy"></a><a class="share-links bds_more icon-plus-1" data-cmd="more"></a></div> <div class="panel-reward"> <ul> <li class="alipay"><img alt="打赏" src="http://www.cfei.net/static/zfb.png"><b>支付宝扫一扫</b></li> <li class="weixinpay"><img alt="打赏" src="http://www.cfei.net/static/wx.png"><b>微信扫一扫</b></li> </ul> </div> </div> </div> <div class="posts-cjtz content-cjtz clearfix"><script type="text/javascript">var cpro_id = "u2800676";</script><script type="text/javascript" src="http://cpro.baidustatic.com/cpro/ui/c.js"></script></div> <div class="next-prev-posts clearfix"> <div class="prev-post" > <a href="http://www.cfei.net/archives/92826" title="Python爬虫之模拟知乎登录的方法教程" class="prev has-background" style="background-image: url(static/python/03/2nzfd2vzp12.png)" alt="Python爬虫之模拟知乎登录的方法教程"> <span>上一篇</span><h4>Python爬虫之模拟知乎登录的方法教程</h4> </a> </div> <div class="next-post" > <a href="http://www.cfei.net/archives/92829" title="Python 编码Basic Auth使用方法简单实例" class="next has-background" style=" background-image: url()" alt="Python 编码Basic Auth使用方法简单实例"> <span>下一篇</span><h4>Python 编码Basic Auth使用方法简单实例</h4> </a> </div> </div> </div> <div class="related-post sx-box"> <h3 class="subtitle"><span>猜你喜欢</span></h3> <ul> <li class="wow zoomIn"> <div class="item"> <a class="relatedpostpic" href="http://www.cfei.net/archives/142563" title="spring mvc 中使用 @RequestMapping 映射请求"> <div class="overlay"></div> <img src="http://www.cfei.net/wp-content/uploads/2017/01/2017010422071561.gif" data-original="http://img.blog.csdn.net/20160325165638015" alt="spring mvc 中使用 @RequestMapping 映射请求" class="lazy thumbnail" /> <h4><span>spring mvc 中使用 @RequestMapping 映射请求</span></h4> </a> </div> </li> <li class="wow zoomIn"> <div class="item"> <a class="relatedpostpic" href="http://www.cfei.net/archives/142486" title="spring mvc 中使用 @RequestMapping 映射请求"> <div class="overlay"></div> <img src="http://www.cfei.net/wp-content/uploads/2017/01/2017010422071561.gif" data-original="http://img.blog.csdn.net/20160325165638015" alt="spring mvc 中使用 @RequestMapping 映射请求" class="lazy thumbnail" /> <h4><span>spring mvc 中使用 @RequestMapping 映射请求</span></h4> </a> </div> </li> <li class="wow zoomIn"> <div class="item"> <a class="relatedpostpic" href="http://www.cfei.net/archives/142482" title="spring mvc中使用 @RequestMapping 映射请求"> <div class="overlay"></div> <img src="http://www.cfei.net/wp-content/uploads/2017/01/2017010422071561.gif" data-original="http://www.cfei.net/wp-content/uploads/2015/05/banner_slide_03.jpg" alt="spring mvc中使用 @RequestMapping 映射请求" class="lazy thumbnail" /> <h4><span>spring mvc中使用 @RequestMapping 映射请求</span></h4> </a> </div> </li> <li class="wow zoomIn"> <div class="item"> <a class="relatedpostpic" href="http://www.cfei.net/archives/142274" title="用juniversalchardet解决爬虫乱码问题"> <div class="overlay"></div> <img src="http://www.cfei.net/wp-content/uploads/2017/01/2017010422071561.gif" data-original="http://www.cfei.net/wp-content/uploads/2015/05/banner_slide_03.jpg" alt="用juniversalchardet解决爬虫乱码问题" class="lazy thumbnail" /> <h4><span>用juniversalchardet解决爬虫乱码问题</span></h4> </a> </div> </li> <li class="wow zoomIn"> <div class="item"> <a class="relatedpostpic" href="http://www.cfei.net/archives/142225" title="java模拟HTTP post,get请求"> <div class="overlay"></div> <img src="http://www.cfei.net/wp-content/uploads/2017/01/2017010422071561.gif" data-original="http://www.cfei.net/wp-content/uploads/2015/05/banner_slide_03.jpg" alt="java模拟HTTP post,get请求" class="lazy thumbnail" /> <h4><span>java模拟HTTP post,get请求</span></h4> </a> </div> </li> <li class="wow zoomIn"> <div class="item"> <a class="relatedpostpic" href="http://www.cfei.net/archives/141738" title="RabbitMQ监控(4)——URL监控"> <div class="overlay"></div> <img src="http://www.cfei.net/wp-content/uploads/2017/01/2017010422071561.gif" data-original="http://www.cfei.net/wp-content/uploads/2015/05/banner_slide_03.jpg" alt="RabbitMQ监控(4)——URL监控" class="lazy thumbnail" /> <h4><span>RabbitMQ监控(4)——URL监控</span></h4> </a> </div> </li> </ul> </div> <div class="clear"></div> </div> <div class="sidebar wow bounceInRight"> <div class="widget suxingme_post_author"> <div class="authors_profile"> <div class="avatar-panel" > <a target="_blank" href="http://www.cfei.net/archives/author/johnny" title="johnny" class="author_pic"> <img alt='' src="http://www.cfei.net/wp-content/themes/feistyle/img/avatar.png" data-original='http://www.cfei.net/wp-content/glc_cache/ebedad6d1cf143b6edd2b9f19fe90214-80.jpg' srcset='http://cdn.v2ex.com/gravatar/ebedad6d1cf143b6edd2b9f19fe90214?s=160&d=mm&r=g 2x' class='avatar avatar-80 photo' height='80' width='80' /> </a> </div> <div class="author_name"><a target="_blank" href="http://www.cfei.net/archives/author/johnny" title="johnny">johnny</a><span>官方</span></div> <p class="author_dec">行动是理想最完美的表达......千里之行始于足下......Just do IT.</p> </div> </div> <div class="widget suxingme_social"><h3><span>关注我们 </span></h3> <div class="attentionus"> <ul class="items clearfix"> <span class="social-widget-link social-link-weibo"> <span class="social-widget-link-count"><i class="icon-weibo"></i>cfei.net</span> <span class="social-widget-link-title">新浪微博</span> <a href="http://weibo.com/johnny3352" target="_blank" rel="nofollow" ></a></span> <span class="social-widget-link social-link-qq"> <span class="social-widget-link-count"><i class="icon-qq"></i>805258803</span> <span class="social-widget-link-title">QQ号</span> <a href="http://wpa.qq.com/msgrd?v=3&uin=805258803&site=qq&menu=yes" rel="nofollow" ></a> </span> <span class="social-widget-link social-link-email"> <span class="social-widget-link-count"><i class="icon-mail"></i>it@cfei.net</span> <span class="social-widget-link-title">QQ邮箱</span> <a href="http://mail.qq.com/cgi-bin/qm_share?t=qm_mailme&email=it@cfei.net" target="_blank" rel="nofollow" ></a> </span> <span class="social-widget-link social-link-wechat"> <span class="social-widget-link-count"><i class="icon-wechat"></i>飞网资源</span> <span class="social-widget-link-title">微信公众号</span> <a id="tooltip-s-weixin" href="javascript:void(0);"></a> </span> <span class="social-widget-link social-link-github"> <span class="social-widget-link-count"><i class="icon-github"></i>cfei-net</span> <span class="social-widget-link-title">GitHub</span> <a href="https://github.com/cfei-net" target="_blank" rel="nofollow" ></a> </span> </ul> </div> </div><div class="widget widget_text"> <div class="textwidget"><iframe width="100%" height="559" class="share_self" frameborder="0" scrolling="no" src="http://widget.weibo.com/weiboshow/index.php?language=&width=0&height=580&fansRow=1&ptype=1&speed=0&skin=9&isTitle=1&noborder=1&isWeibo=1&isFans=1&uid=1827240667&verifier=224ba946&dpc=1"></iframe></div> </div><div class="widget widget_suxingme_hotpost"><h3><span>热评文章</span></h3> <li> <a class="img" href="http://www.cfei.net/archives/142621" title="(第1讲)java&#160;的基本类型及其范围"> <i class="icon-forward"></i> <img src="http://www.cfei.net/wp-content/uploads/2017/01/2017010422071561.gif" data-original="http://www.cfei.net/wp-content/uploads/2015/05/banner_slide_03.jpg" alt="(第1讲)java&#160;的基本类型及其范围" class="lazy thumbnail" /> </a> <div class="title"> <div class="entry-meta"><span><i class="icon-comment-inv-alt2"></i> 0</span><span><i class="icon-clock-1"></i> 2018-04-12</span></div> <h4><a href="http://www.cfei.net/archives/142621" title="(第1讲)java&#160;的基本类型及其范围">(第1讲)java&#160;的基本类型及其范围</a></h4> </div> </li> <li> <a class="img" href="http://www.cfei.net/archives/140154" title="spring异常:java.lang.ClassNotFoundException: org.aopalliance.aop.Advice"> <i class="icon-forward"></i> <img src="http://www.cfei.net/wp-content/uploads/2017/01/2017010422071561.gif" data-original="http://www.cfei.net/wp-content/uploads/2015/05/banner_slide_03.jpg" alt="spring异常:java.lang.ClassNotFoundException: org.aopalliance.aop.Advice" class="lazy thumbnail" /> </a> <div class="title"> <div class="entry-meta"><span><i class="icon-comment-inv-alt2"></i> 0</span><span><i class="icon-clock-1"></i> 2018-02-23</span></div> <h4><a href="http://www.cfei.net/archives/140154" title="spring异常:java.lang.ClassNotFoundException: org.aopalliance.aop.Advice">spring异常:java.lang.ClassNotFoundException: org.aopalliance.aop.Advice</a></h4> </div> </li> <li> <a class="img" href="http://www.cfei.net/archives/140155" title="Java实验:输出希腊字母"> <i class="icon-forward"></i> <img src="http://www.cfei.net/wp-content/uploads/2017/01/2017010422071561.gif" data-original="http://www.cfei.net/wp-content/uploads/2015/05/banner_slide_03.jpg" alt="Java实验:输出希腊字母" class="lazy thumbnail" /> </a> <div class="title"> <div class="entry-meta"><span><i class="icon-comment-inv-alt2"></i> 0</span><span><i class="icon-clock-1"></i> 2018-02-23</span></div> <h4><a href="http://www.cfei.net/archives/140155" title="Java实验:输出希腊字母">Java实验:输出希腊字母</a></h4> </div> </li> </div><div class="widget widget_suxingme_mostviews"><h3><span>最热点击文章</span></h3> <li> <a class="img" href="http://www.cfei.net/archives/92827" title="Python爬虫实现网页信息抓取功能示例【URL与正则模块】"> <i class="icon-forward"></i> <img src="http://www.cfei.net/wp-content/uploads/2017/01/2017010422071561.gif" data-original="http://www.cfei.net/wp-content/uploads/2015/05/banner_slide_03.jpg" alt="Python爬虫实现网页信息抓取功能示例【URL与正则模块】" class="lazy thumbnail" /> </a> <div class="title"> <div class="entry-meta"><span><i class="icon-eye"></i> 704</span><span><i class="icon-clock-1"></i> 2017-06-13</span></div> <h4><a href="http://www.cfei.net/archives/92827" title="Python爬虫实现网页信息抓取功能示例【URL与正则模块】">Python爬虫实现网页信息抓取功能示例【URL与正则模块】</a></h4> </div> </li> <li> <a class="img" href="http://www.cfei.net/archives/138739" title="Java.反射.调用方法"> <i class="icon-forward"></i> <img src="http://www.cfei.net/wp-content/uploads/2017/01/2017010422071561.gif" data-original="http://www.cfei.net/wp-content/uploads/2015/05/banner_slide_03.jpg" alt="Java.反射.调用方法" class="lazy thumbnail" /> </a> <div class="title"> <div class="entry-meta"><span><i class="icon-eye"></i> 546</span><span><i class="icon-clock-1"></i> 2017-11-18</span></div> <h4><a href="http://www.cfei.net/archives/138739" title="Java.反射.调用方法">Java.反射.调用方法</a></h4> </div> </li> <li> <a class="img" href="http://www.cfei.net/archives/135536" title="jdk自带多线程处理神器Executor"> <i class="icon-forward"></i> <img src="http://www.cfei.net/wp-content/uploads/2017/01/2017010422071561.gif" data-original="http://www.cfei.net/wp-content/uploads/2015/05/banner_slide_03.jpg" alt="jdk自带多线程处理神器Executor" class="lazy thumbnail" /> </a> <div class="title"> <div class="entry-meta"><span><i class="icon-eye"></i> 544</span><span><i class="icon-clock-1"></i> 2017-06-29</span></div> <h4><a href="http://www.cfei.net/archives/135536" title="jdk自带多线程处理神器Executor">jdk自带多线程处理神器Executor</a></h4> </div> </li> </div><div class="widget widget_suxingme_cjtz"><div class="widget_cjtz"><div class="widget_cjtz_img" style="margin: -27px;"><a class="cjtz-border" href="https://bbs.cfei.net/forum-54-1.html" target="_blank"><img src="http://www.cfei.net/static/20161030092634.jpg" title="Java资源分享" width="100%" height="auto"></a><div class="img-info"><i class="icon-info"></i><div class="info">Java资源分享</div></div></div></div></div><div class="widget widget_text"> <div class="textwidget"><script type="text/javascript"> document.write('<a style="display:none!important" id="tanx-a-mm_44912443_4204073_69554537"></a>'); tanx_s = document.createElement("script"); tanx_s.type = "text/javascript"; tanx_s.charset = "gbk"; tanx_s.id = "tanx-s-mm_44912443_4204073_69554537"; tanx_s.async = true; tanx_s.src = "http://p.tanx.com/ex?i=mm_44912443_4204073_69554537"; tanx_h = document.getElementsByTagName("head")[0]; if(tanx_h)tanx_h.insertBefore(tanx_s,tanx_h.firstChild); </script> <script type="text/javascript">var cpro_id = "u2862896";</script><script type="text/javascript" src="http://cpro.baidustatic.com/cpro/ui/c.js"></script> </div> </div> </div> </div> </div> </div> <div class="clearfix"></div> <div id="footer" class="two-s-footer"> <div class="footer-box"> <div class="container"> <div class="row"> <div class="social-footer"> <a class="weiboii" href="http://weibo.com/johnny3352" target="_blank"><i class="icon-weibo"></i></a> <a class="ttweiboii" href="http://t.qq.com/Johnny_cf" target="_blank" rel="nofollow" title="腾讯微博"><i class="icon-tencent-weibo"></i></a> <a class="mailii" href="http://mail.qq.com/cgi-bin/qm_share?t=qm_mailme&email=it@cfei.net"target="_blank"><i class="icon-mail-2"></i></a> <a class="qqii" href="http://wpa.qq.com/msgrd?v=3&uin=805258803&site=qq&menu=yes" target="_blank"><i class="icon-qq"></i></a> <a id="tooltip-f-weixin" class="wxii" href="javascript:void(0);"><i class="icon-wechat"></i></a> </div> <div class="nav-footer"> <a target="_blank" href="http://down.cfei.net/disclaimer.html">免责声明</a> <a target="_blank" href="http://down.cfei.net/aboutus.html">关于我们</a> <a target="_blank" href="http://down.cfei.net/help.html">下载帮助</a> <a target="_blank" href="http://www.cfei.net/java2">JavaWeb笔试题</a> <a target="_blank" href="http://www.cfei.net/java4">数据库笔试题</a> </div> <div class="copyright-footer"> <p>Copyright © 2012-2017 <a class="site-link" href="http://www.cfei.net" title="飞网" rel="home">CFEI.NET</a>   <a href="http://www.miitbeian.gov.cn" rel="external nofollow" target="_blank">粤ICP备15108066号-2</a> <script type="text/javascript"> var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://"); document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F1857833b9b946bd32b35242ea184d357' type='text/javascript'%3E%3C/script%3E")); </script>   如有侵权请发邮件(<a href="mailto:it@cfei.net" >it@cfei.net</a>)通知我们,我们会及时删除 </p> </div> </div> </div> </div> </div> <div class="search-form"> <form method="get" action="http://www.baidu.com/baidu" target="_blank" role="search"> <div class="search-form-inner"> <div class="search-form-box"> <input name="tn" type="hidden" value="bds"> <input name="cl" type="hidden" value="3"> <input name="ct" type="hidden" value="2097152"> <input name="si" type="hidden" value="www.cfei.net"> <input class="form-search" type="text" name="word" placeholder="键入搜索关键词"> <button type="submit" id="btn-search"><i class="icon-search"></i> </button> </div> <div class="search-commend"> <h4>大家都在搜</h4> <ul> <li><a target="_blank" href="https://www.baidu.com/baidu?tn=bds&cl=3&ct=2097152&si=www.cfei.net&si=&word=hadoop">hadoop</a></li> <li><a target="_blank" href="https://www.baidu.com/baidu?tn=bds&cl=3&ct=2097152&si=www.cfei.net&si=&word=jvm">jvm</a></li> <li><a target="_blank" href="https://www.baidu.com/baidu?tn=bds&cl=3&ct=2097152&si=www.cfei.net&si=&word=db2%E4%B8%BB%E9%94%AE%E8%87%AA%E5%A2%9E">db2主键自增</a></li> <li><a target="_blank" href="https://www.baidu.com/baidu?tn=bds&cl=3&ct=2097152&si=www.cfei.net&si=&word=oracle%E5%AD%98%E5%82%A8%E8%BF%87%E7%A8%8B">oracle存储过程</a></li> <li><a target="_blank" href="https://www.baidu.com/s?ie=utf-8&f=8&rsv_bp=0&rsv_idx=1&tn=baidu&wd=%E9%A3%9E%E7%BD%91%E8%AE%BA%E5%9D%9B&rsv_pq=9d0c941700046ae2&rsv_t=fab4CupeiON055V6a90z6r5uvZND%2FD5eLkiVKS%2FdqGnGHG40o14ynq8iZCo&rqlang=cn&rsv_enter=1&rsv_sug3=9&rsv_sug1=6&rsv_sug7=100">飞网论坛</a></li> <li><a target="_blank" href="https://www.baidu.com/s?ie=utf-8&f=8&rsv_bp=0&rsv_idx=1&tn=baidu&wd=%E9%A3%9E%E7%BD%91&rsv_pq=9d0c941700046ae2&rsv_t=61ecZJcC8q27JCCTPlvn1rraBsdZ8A47I9zmvQCIPlCxOloBwXObFIg8tPE&rqlang=cn&rsv_enter=1&rsv_sug3=5&rsv_sug1=3&rsv_sug7=100">飞网</a></li> </ul> </div> </div> </form> <div class="close-search"> <span class="close-top"></span> <span class="close-bottom"></span> </div> </div> <div class="f-weixin-dropdown"> <div class="tooltip-weixin-inner"> <h3>微信公众号</h3> <div class="qcode"> <img src="http://www.cfei.net/static/qrcode.jpg" width="160" height="160" alt="微信公众号"> </div> </div> <i class="icon-cancel-1 close_tip"></i> </div> <a class="to-top"><i class="icon-up-small"></i></a> <script type="text/javascript">jQuery(document).ready(function($) {$(".fancybox").fancybox()});</script><script type='text/javascript' src='http://www.cfei.net/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shCore.js?ver=3.0.83c'></script> <script type='text/javascript' src='http://www.cfei.net/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shBrushPython.js?ver=3.0.83c'></script> <script type='text/javascript'> (function(){ var corecss = document.createElement('link'); var themecss = document.createElement('link'); var corecssurl = "http://www.cfei.net/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/styles/shCore.css?ver=3.0.83c"; if ( corecss.setAttribute ) { corecss.setAttribute( "rel", "stylesheet" ); corecss.setAttribute( "type", "text/css" ); corecss.setAttribute( "href", corecssurl ); } else { corecss.rel = "stylesheet"; corecss.href = corecssurl; } document.getElementsByTagName("head")[0].insertBefore( corecss, document.getElementById("syntaxhighlighteranchor") ); var themecssurl = "http://www.cfei.net/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/styles/shThemeDefault.css?ver=3.0.83c"; if ( themecss.setAttribute ) { themecss.setAttribute( "rel", "stylesheet" ); themecss.setAttribute( "type", "text/css" ); themecss.setAttribute( "href", themecssurl ); } else { themecss.rel = "stylesheet"; themecss.href = themecssurl; } //document.getElementById("syntaxhighlighteranchor").appendChild(themecss); document.getElementsByTagName("head")[0].insertBefore( themecss, document.getElementById("syntaxhighlighteranchor") ); })(); SyntaxHighlighter.config.strings.expandSource = '+ expand source'; SyntaxHighlighter.config.strings.help = '帮助'; SyntaxHighlighter.config.strings.alert = 'SyntaxHighlighter\n\n'; SyntaxHighlighter.config.strings.noBrush = '无法找到Brush:'; SyntaxHighlighter.config.strings.brushNotHtmlScript = 'Brush不能设置 html-script选项'; SyntaxHighlighter.defaults['pad-line-numbers'] = false; SyntaxHighlighter.defaults['wrap-lines'] = false; SyntaxHighlighter.all(); </script> <script type='text/javascript'> /* <![CDATA[ */ var viewsCacheL10n = {"admin_ajax_url":"http:\/\/www.cfei.net\/wp-admin\/admin-ajax.php","post_id":"92827"}; /* ]]> */ </script> <script type='text/javascript' src='http://www.cfei.net/wp-content/plugins/wp-postviews/postviews-cache.js?ver=1.64'></script> <script type='text/javascript' src='http://www.cfei.net/wp-content/themes/feistyle/js/jquery.sticky-kit.min.js?ver=Grace6'></script> <script type='text/javascript' src='http://www.cfei.net/wp-content/themes/feistyle/js/bootstrap.min.js?ver=Grace6'></script> <script type='text/javascript' src='http://www.cfei.net/wp-content/themes/feistyle/js/jQuery.resizeEnd.js?ver=Grace6'></script> <script type='text/javascript'> /* <![CDATA[ */ var suxingme_url = {"url_ajax":"http:\/\/www.cfei.net\/wp-admin\/admin-ajax.php","url_theme":"http:\/\/www.cfei.net\/wp-content\/themes\/feistyle","roll":"1","headfixed":"1","slidestyle":"index_no_slide","wow":"1"}; /* ]]> */ </script> <script type='text/javascript' src='http://www.cfei.net/wp-content/themes/feistyle/js/suxingme.js?ver=Grace6'></script> <script type='text/javascript' src='http://www.cfei.net/wp-content/themes/feistyle/js/wow.min.js?ver=Grace6'></script> <script type='text/javascript' src='http://www.cfei.net/wp-content/themes/feistyle/js/jquery.bootstrap-autohidingnavbar.min.js?ver=Grace6'></script> <script type='text/javascript' src='http://www.cfei.net/wp-content/themes/feistyle/js/jquery.lazyload.min.js?ver=Grace6'></script> <script type='text/javascript' src='http://www.cfei.net/wp-content/themes/feistyle/ajax-comment/ajax-comment.js?ver=Grace6'></script> <script type='text/javascript' src='http://www.cfei.net/wp-content/themes/feistyle/js/baidushare.js?ver=Grace6'></script> <script type='text/javascript' src='http://www.cfei.net/wp-content/themes/feistyle/js/fancybox.js?ver=Grace6'></script> </body> </html>