37,720
社区成员
发帖
与我相关
我的任务
分享
#!/usr/bin/env python
#coding=utf-8
import urllib
url=u"http://www.webxml.com.cn/webservices/weatherwebservice.asmx/getWeatherbyCityName?theCityName=青岛"
#打开url
page=urllib.urlopen(url.encode('utf-8'))
#读取
body=page.readlines()
page.close()
#循环打印
for line in body:
print line