- 帖子
- 36
- 精华
- 0
- 积分
- 243
- 阅读权限
- 30
- 注册时间
- 2013-8-20
- 最后登录
- 2015-9-6
|
crossin先生 发表于 2013-8-21 20:07
这你要把content4输出出来看看
或者你把这行代码分两行,先把content4.split('|')输出,看看问题到底在哪 ... - ['090202', '101090202']
- ['090203', '101090203']
- ['090204', '101090204']
- ['090205', '101090205']
- ['090206', '101090206']
- ['090207', '101090207']
- ['090209', '101090209']
- ['<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n<html xmlns="http://www.w3.org/1999/xhtml"><head>\n<!--\n<meta http-equiv=\'refresh\' content=\'5; url=http://www.weather.com.cn\'>\n-->\n<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">\n<title>\xe9\xa1\xb5\xe9\x9d\xa2\xe6\xb2\xa1\xe6\x9c\x89\xe6\x89\xbe\xe5\x88\xb0-\xe4\xb8\xad\xe5\x9b\xbd\xe5\xa4\xa9\xe6\xb0\x94\xe7\xbd\x91</title>\n<style>\n\n*\n {\n\tmargin: 0;\n\tpadding: 0;\n\tlist-style:none;\n\tfont-weight:normal;\n }\na img\n {\n\tborder:1px solid #dcdddd;\n\t}\nbody \n {\n\tfont-family: Arial, Verdana, Helvetica, sans-serif;\n\tbackground:#fff;\n\tcolor:#000;\n\tfont-size:12px;\nfont-style:normal;\n\t}\ni \n {\nfont-style:normal;\n}\na \n {\n\tcolor:#36B;\n\ttext-decoration:none;\n font-size:12px;\n outline: medium none;\n\t}\na:hover\n {\n\tcolor:#F60;\n\ttext-decoration:underline;\n\t}\na:link {\n font-size: 20px;\n line-height: 26px;\nfont-weight: bold;\n color: #3366bb;\n text-decoration: underline;\n}\n.main\n{\n\twidth:960px;\n\theight:300px;\n\tborder-bottom:4px solid #36b;\n\tmargin:0 auto;\n\tmargin-top:20px;}\n.main h1\n{\n\tbackground:#36b;\n\theight:24px;\n\tfont-size:17px;\n\tfont-weight:bold;\n\ttext-align:center;\n\tcolor:#fff;\n\tline-height:24px;}\n.main p\n{\n\tmargin-top:20px;\nmargin-bottom:20px;\n\n\tcolor:#333;\n\tfont-size:15px;\n\ttext-align:center;}\n.main p a\n{\n\tfont-weight:bold;}\n.ewm{\n\twidth:158px;\n\theight:auto;\n padding-bottom:5px;\n\tmargin:0 auto;\n\tbackground-color:#f2efef;\n\tmargin-top:5px;\n\n}\n.ewm h3 a{\n\tfont-size:13px;\n\tcolor:#000;\ntext-decoration: none;\nfont-weight:normal;\n}\n.ewm h3{\n\ttext-align:center;\n\theight:25px;\n\tline-height:25px;\n}\n.ewm dl{\n\twidth:158px;\n\theight:auto;\n\ttext-align:center;}\n.ewm dl dt{\n\twidth:158px;\ntext-align:center;\n\theight:145px;\n\tmargin:0 auto;}\n.ewm dl dt img{\n\twidth:145px;\n\theight:145px;\n}\n.ewm dl dd{\n\theight:20px;\n\tline-height:20px;\n\twidth:150px;\n}\n.ewm dl dd a{\n\tfont-size:13px;\n\tcolor:##3366bb;\n}\n</style>\n</head>\n\n<body>\n<div class="main">\n\t<h1>\xe5\xbe\x88\xe6\x8a\xb1\xe6\xad\x89\xef\xbc\x8c\xe6\x82\xa8\xe8\xa6\x81\xe8\xae\xbf\xe9\x97\xae\xe7\x9a\x84\xe9\xa1\xb5\xe9\x9d\xa2\xe4\xb8\x8d\xe5\xad\x98\xe5\x9c\xa8\xe3\x80\x82</h1>\n\t<p>\xe8\xaf\xb7\xe7\x9b\xb4\xe6\x8e\xa5\xe7\x82\xb9\xe5\x87\xbb\xe4\xb8\x8b\xe9\x9d\xa2\xe7\x9a\x84\xe8\xbf\x9e\xe6\x8e\xa5\xe8\xbf\x9b\xe5\x85\xa5\xe4\xb8\xad\xe5\x9b\xbd\xe5\xa4\xa9\xe6\xb0\x94\xe7\xbd\x91\xe9\xa6\x96\xe9\xa1\xb5\xef\xbc\x9a<a href="http://www.weather.com.cn/">www.weather.com.cn</a></p>\n<div class="ewm">\n <h3><a href="http://3g.weather.com.cn/">\xe4\xb8\xad\xe5\x9b\xbd\xe5\xa4\xa9\xe6\xb0\x94\xe7\xbd\x91\xe5\xae\xa2\xe6\x88\xb7\xe7\xab\xaf</a></h3>\n <dl>\n <dt><a href="http://3g.weather.com.cn/"><img src="/poster/chart.png"></a></dt>\n <dd><a href="http://3g.weather.com.cn/">\xe7\x82\xb9\xe5\x87\xbb\xe6\x88\x96\xe6\x89\xab\xe6\x8f\x8f\xe4\xb8\x8b\xe8\xbd\xbd</a></dd>\n </dl>\n \n </div>\n</div>\n<script type="text/javascript" src="weather_error_404_files/a1.js">\n</script>\n<script type="text/javascript">\nvar vjAcc="860010-2099030100";\nvar wrUrl="http://c.wrating.com/";\nvjTrack("");\n</script><div style="display:none"><img src="weather_error_404_files/a.gif" id="wrTagImage" height="1" width="1"></div>\n<noscript><img src="http://c.wrating.com/a.gif?a=&c=860010-2099030100" width="1" height="1"/></noscript>\n\n\n</body></html>\n']
- ['090211', '101090211']
- ['090212', '101090212']
复制代码 print content4.split('|') 跑出xhtml了,xml文件不规则的原因吧 |
|