[Python] 纯文本查看 复制代码 s='''
<tr>
<td class="td-title faceblue">
<span class="face" title="普通帖">
</span>
<a href="/post-666-47243-1.shtml" target="_blank">
《周易古经通注》序言、上篇、中篇<span class="art-ico art-ico-3" title="内有91张图片"></span>
</a>
</td>
<td><a href="http://www.tianya.cn/142313170" target="_blank" class="author">几度观澜</a></td>
<td>445</td>
<td>74</td>
<td title="2020-05-16 17:08">05-16 17:08</td>
</tr>
<tr class="bg">
<td class="td-title faceblue">
<span class="face" title="普通帖">
</span>
<a href="/post-666-47293-1.shtml" target="_blank">
健鸽:对越南普选的认识
</a>
</td>
<td><a href="http://www.tianya.cn/31104550" target="_blank" class="author">健鸽</a></td>
<td>8</td>
<td>0</td>
<td title="2020-05-16 14:48">05-16 14:48</td>
</tr>
<tr>
<td class="td-title faceblue">
<span class="face" title="普通帖">
</span>
<a href="/post-666-47195-1.shtml" target="_blank">
《道德经》原味译文,打脸假学者
</a>
</td>
<td><a href="http://www.tianya.cn/142381898" target="_blank" class="author">鹤_鸣九皋</a></td>
<td>238</td>
<td>23</td>
<td title="2020-05-16 11:40">05-16 11:40</td>
</tr>
<tr class="bg">
<td class="td-title faceblue">
<span class="face" title="普通帖">
</span>
<a href="/post-666-47286-1.shtml" target="_blank">
认识决定立场,立场不决定认识
</a>
</td>
<td><a href="http://www.tianya.cn/31104550" target="_blank" class="author">健鸽</a></td>
<td>9</td>
<td>0</td>
<td title="2020-05-16 07:03">05-16 07:03</td>
</tr>
<tr>
<td class="td-title faceblue">
<span class="face" title="普通帖">
</span>
<a href="/post-666-47279-1.shtml" target="_blank">
创意高于著作权
</a>
</td>
<td><a href="http://www.tianya.cn/138462930" target="_blank" class="author">和田出美玉</a></td>
<td>14</td>
<td>1</td>
<td title="2020-05-16 06:03">05-16 06:03</td>
</tr>
<tr class="bg">
<td class="td-title faceblue">
<span class="face" title="普通帖">
</span>
<a href="/post-666-42441-1.shtml" target="_blank">
连载:《直方周易》系词 ——赵庚白译注
</a>
</td>
<td><a href="http://www.tianya.cn/94728909" target="_blank" class="author">赵庚白</a></td>
<td>3068</td>
<td>311</td>
<td title="2020-05-16 05:02">05-16 05:02</td>
</tr>
<tr>
<td class="td-title faceblue">
<span class="face" title="普通帖">
</span>
<a href="/post-666-47285-1.shtml" target="_blank">
《匿名》:一部误入迷途之作
</a>
</td>
<td><a href="http://www.tianya.cn/47334404" target="_blank" class="author">大方客dfk</a></td>
<td>10</td>
<td>0</td>
<td title="2020-05-16 01:12">05-16 01:12</td>
</tr>
</tbody>
<tbody>
<tr class="bg">
<td class="td-title faceblue">
<span class="face" title="普通帖">
</span>
<a href="/post-666-47182-1.shtml" target="_blank">
为什么中国再也出不了郭沫若这样的大师了呢<span class="art-ico art-ico-3" title="内有6张图片"></span>
</a>
</td>
<td><a href="http://www.tianya.cn/81758822" target="_blank" class="author">得了得了2013</a></td>
<td>838</td>
<td>74</td>
<td title="2020-05-15 23:37">05-15 23:37</td>
</tr>
<tr>
<td class="td-title faceblue">
<span class="face" title="普通帖">
</span>
<a href="/post-666-47188-1.shtml" target="_blank">
郭沫若:亵渎了民族文化
</a>
</td>
<td><a href="http://www.tianya.cn/41210073" target="_blank" class="author">天山石A</a></td>
<td>95</td>
<td>7</td>
<td title="2020-05-15 19:15">05-15 19:15</td>
</tr>
<tr class="bg">
<td class="td-title faceblue">
<span class="face" title="普通帖">
</span>
<a href="/post-666-47084-1.shtml" target="_blank">
孔孑讲的仁的原意
</a>
</td>
<td><a href="http://www.tianya.cn/42701161" target="_blank" class="author">liyiminluoyang</a></td>
<td>267</td>
<td>26</td>
<td title="2020-05-15 18:34">05-15 18:34</td>
</tr>
<tr>
<td class="td-title faceblue">
<span class="face" title="普通帖">
</span>
<a href="/post-666-25731-1.shtml" target="_blank">
细说周易
</a>
</td>
<td><a href="http://www.tianya.cn/74632861" target="_blank" class="author">dyzang</a></td>
<td>11856</td>
<td>822</td>
<td title="2020-05-15 10:35">05-15 10:35</td>
</tr>
<tr class="bg">
<td class="td-title faceblue">
<span class="face" title="普通帖">
</span>
<a href="/post-666-47267-1.shtml" target="_blank">
以诗情画意为本的“元四家”<span class="art-ico art-ico-3" title="内有7张图片"></span>
</a>
</td>
<td><a href="http://www.tianya.cn/122757507" target="_blank" class="author">ty_顾绍骅</a></td>
<td>28</td>
<td>7</td>
<td title="2020-05-15 10:25">05-15 10:25</td>
</tr>
<tr>
<td class="td-title faceblue">
<span class="face" title="普通帖">
</span>
<a href="/post-666-47158-1.shtml" target="_blank">
《思维学》第二部;人的思维
</a>
</td>
<td><a href="http://www.tianya.cn/141277193" target="_blank" class="author">139632931862019</a></td>
<td>281</td>
<td>78</td>
<td title="2020-05-15 10:09">05-15 10:09</td>
</tr>
<tr class="bg">
<td class="td-title faceblue">
<span class="face" title="普通帖">
</span>
<a href="/post-666-47237-1.shtml" target="_blank">
形而上学及其一般
</a>
</td>
<td><a href="http://www.tianya.cn/121524160" target="_blank" class="author">洋纳川</a></td>
<td>110</td>
<td>20</td>
<td title="2020-05-15 07:32">05-15 07:32</td>
</tr>
<tr>
<td class="td-title faceblue">
<span class="face" title="普通帖">
</span>
<a href="/post-666-46994-1.shtml" target="_blank">
老麻花的哲学(六)<span class="art-ico art-ico-3" title="内有20张图片"></span>
</a>
</td>
<td><a href="http://www.tianya.cn/112516063" target="_blank" class="author">老麻花2016</a></td>
<td>491</td>
<td>73</td>
<td title="2020-05-15 07:17">05-15 07:17</td>
</tr>
<tr class="bg">
<td class="td-title faceblue">
<span class="face" title="普通帖">
</span>
<a href="/post-666-47231-1.shtml" target="_blank">
《直方周易》亢龙有悔——产生悔恨皆因龙做得过大
</a>
</td>
<td><a href="http://www.tianya.cn/94728909" target="_blank" class="author">赵庚白</a></td>
<td>63</td>
<td>2</td>
<td title="2020-05-15 05:42">05-15 05:42</td>
</tr>
<tr>
<td class="td-title faceblue">
<span class="face" title="普通帖">
</span>
<a href="/post-666-47176-1.shtml" target="_blank">
坚决抛弃形式主义
</a>
</td>
<td><a href="http://www.tianya.cn/136037391" target="_blank" class="author">路人甲1018</a></td>
<td>66</td>
<td>4</td>
<td title="2020-05-14 22:34">05-14 22:34</td>
</tr>
</tbody>
<tbody>
<tr class="bg">
<td class="td-title faceblue">
<span class="face" title="普通帖">
</span>
<a href="/post-666-47271-1.shtml" target="_blank">
认识的局限和认识的方法
</a>
</td>
<td><a href="http://www.tianya.cn/121524160" target="_blank" class="author">洋纳川</a></td>
<td>37</td>
<td>1</td>
<td title="2020-05-14 12:27">05-14 12:27</td>
</tr>
<tr>
<td class="td-title faceblue">
<span class="face" title="普通帖">
</span>
<a href="/post-666-47264-1.shtml" target="_blank">
贫困的逻辑
</a>
</td>
<td><a href="http://www.tianya.cn/138981072" target="_blank" class="author">月落清岩</a></td>
<td>88</td>
<td>18</td>
<td title="2020-05-14 09:58">05-14 09:58</td>
</tr>
<tr class="bg">
<td class="td-title faceblue">
<span class="face" title="普通帖">
</span>
<a href="/post-666-47263-1.shtml" target="_blank">
《石头记》——如何披阅增删如何撰?
</a>
</td>
<td><a href="http://www.tianya.cn/138462930" target="_blank" class="author">和田出美玉</a></td>
<td>25</td>
<td>3</td>
<td title="2020-05-14 06:21">05-14 06:21</td>
</tr>
<tr>
<td class="td-title faceblue">
<span class="face" title="普通帖">
</span>
<a href="/post-666-46776-1.shtml" target="_blank">
《直方周易》元亨利贞——周天子四种善美品德<span class="art-ico art-ico-3" title="内有2张图片"></span>
</a>
</td>
<td><a href="http://www.tianya.cn/94728909" target="_blank" class="author">赵庚白</a></td>
<td>943</td>
<td>32</td>
<td title="2020-05-14 04:52">05-14 04:52</td>
</tr>
import re
s1=re.findall('内有(\d*)张图',s)
print(s1)
s2=re.sub('内有(\d*)张图片',"换成什么",s)print(s2)
为什么中国再也出不了郭沫若这样的大师了呢<span class="art-ico art-ico-3" title="换成什么"></spa |