项目简介
- 内容
对不同国家的CO2排放量进行数据分析
-
持续时间: 7天
-
涉及内容:
python字符串、字典、pandas,用户输入,matplotlib绘图等。
第2天 年度计算
- 统计指定年份的最大值,最小值和平均值
$ python emissions2.py Select a year to find statistics (1997 to 2010): 2000 In 2000, countries with minimum and maximum CO2 emission levels were: [Chad] and [Qatar] respectively.Average CO2 emissions in 2000 were 5.088852
参考代码:

image.png
文章转载于:https://www.jianshu.com/p/ce08c5806410
原著是一个有趣的人,若有侵权,请通知删除
还没有人抢沙发呢~