diff --git "a/\347\254\254\344\272\214\347\211\210/Cha 16 -\347\210\254\350\231\253\345\256\236\346\210\230\344\270\211\357\274\232\347\231\276\345\272\246\345\234\260\345\233\276API/Cha 16 -\347\210\254\350\231\253\345\256\236\346\210\230\344\270\211\357\274\232\347\231\276\345\272\246\345\234\260\345\233\276API.ipynb" "b/\347\254\254\344\272\214\347\211\210/Cha 16 -\347\210\254\350\231\253\345\256\236\346\210\230\344\270\211\357\274\232\347\231\276\345\272\246\345\234\260\345\233\276API/Cha 16 -\347\210\254\350\231\253\345\256\236\346\210\230\344\270\211\357\274\232\347\231\276\345\272\246\345\234\260\345\233\276API.ipynb" index 2b804eb..fb3e8cf 100644 --- "a/\347\254\254\344\272\214\347\211\210/Cha 16 -\347\210\254\350\231\253\345\256\236\346\210\230\344\270\211\357\274\232\347\231\276\345\272\246\345\234\260\345\233\276API/Cha 16 -\347\210\254\350\231\253\345\256\236\346\210\230\344\270\211\357\274\232\347\231\276\345\272\246\345\234\260\345\233\276API.ipynb" +++ "b/\347\254\254\344\272\214\347\211\210/Cha 16 -\347\210\254\350\231\253\345\256\236\346\210\230\344\270\211\357\274\232\347\231\276\345\272\246\345\234\260\345\233\276API/Cha 16 -\347\210\254\350\231\253\345\256\236\346\210\230\344\270\211\357\274\232\347\231\276\345\272\246\345\234\260\345\233\276API.ipynb" @@ -803,7 +803,7 @@ " decodejson = getjson(eachprovince)\n", " for eachcity in decodejson['results']:\n", " city = eachcity['name']\n", - " num = eachcity['num']\n", + " num = getjson(city)['total']\n", " print (city, num)\n", " output = '\\t'.join([city, str(num)]) + '\\r\\n'\n", " with open('cities.txt', \"a+\", encoding='utf-8') as f:\n", @@ -846,7 +846,7 @@ "six_cities_list = ['北京市','上海市','重庆市','天津市','香港特别行政区','澳门特别行政区',]\n", "for eachprovince in decodejson['results']:\n", " city = eachprovince['name']\n", - " num = eachprovince['num']\n", + " num = getjson(city)['total']\n", " if city in six_cities_list:\n", " output = '\\t'.join([city, str(num)]) + '\\r\\n'\n", " with open('cities.txt', \"a+\", encoding='utf-8') as f:\n",