資源簡介
使用PYTHON繪制世界人口地圖
代碼片段和文件信息
from?pygal_maps_world.i18n?import?COUNTRIES
def?get_country_code(country_name):
????for?codename?in?COUNTRIES.items():
????????if?name?==?country_name:
????????????return?code
????else:return?None
#print(get_country_code(‘Andorra‘))
#print(COUNTRIES.items())
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2020-05-20?13:15??population_country\
?????文件?????????272??2020-05-20?11:37??population_country\country_codes.py
?????文件????????2153??2020-05-20?13:15??population_country\world_population.py
?????文件??????905239??2020-05-20?13:15??population_country\world_population.svg
?????文件????22383021??2020-05-20?10:48??population_country\WPP2019_TotalPopulationBySex.csv
?????目錄???????????0??2020-05-20?11:39??population_country\__pycache__\
?????文件?????????392??2020-05-20?11:39??population_country\__pycache__\country_codes.cpython-38.pyc
- 上一篇:幾個基礎的Python,學習專用
- 下一篇:python科學計算(源代碼)
評論
共有 條評論