37,719
社区成员
发帖
与我相关
我的任务
分享
import json
filename='population_data.json'
with open(filename) as f:
pop_data=json.load(f)
for pop_dict in pop_data:
if pop_dict["Year"] == "1990-08-25":
country_name=pop_dict["Country Name"]
population=pop_dict["Value"]
print country_name+':'+population