假设我有已下列数据的文件:打印使用python
<td class="w"><a href="show.cgi?id=120012" title="[Title] @Blue: Session_TIMEOUT after 60033 ms">[Title] @Blue: Session_TIMEOUT after 60033 ms</a></td>'
<td class="w"><a href="show.cgi?id=120012" title="[Title] @Blue: Session_TIMEOUT after 60500 ms">[Title] @Blue: Session_TIMEOUT after 60033 ms</a></td>'
在该上面的字符串我怎样才能retrive字符串标题后=“[标题] @蓝色: Session_TIMEOUT在60033 ms之后“,对于HTML标签下的两行,并在下一行写回字符串。
我想输出是这样的:
<td class="w"><a href="show.cgi?id=120012" title="[Title] @Blue: Session_TIMEOUT after 60033 ms">[Title] @Blue: Session_TIMEOUT after 60033 ms</a></td>'
@Blue: Session_TIMEOUT after 60033 ms
<td class="w"><a href="show.cgi?id=120012" title="[Title] @Blue: Session_TIMEOUT after 60500 ms">[Title] @Blue: Session_TIMEOUT after 60033 ms</a></td>'
@Blue: Session_TIMEOUT after 60500 ms
请帮我一样的.... 预先感谢
提到这是真正使用充满感激。但我还有一个问题,你再看看我的修改问题,在页面的开始。 –