name = input('输入所查询城市(拼音格式)')
import urllib.request as r #导入联网工具包,命名为r
url='http://api.openweathermap.org/data/2.5/weather?q='+name+'&mode=json&units=metric&lang=zh_cn&APPID=6a67ed641c0fda8b69715c43518b6996'
data=r.urlopen(url).read().decode('utf-8')