Ai
1 Star 0 Fork 0

leetone/my_python

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
country_code.py 326 Bytes
一键复制 编辑 原始数据 按行查看 历史
leetone 提交于 2018-08-15 15:56 +08:00 . 利用pygal绘制世界人口地图
from pygal.maps.world import COUNTRIES
def get_country_code(country_name):
print("现在的城市:"+country_name)
for code,name in COUNTRIES.items():
print(COUNTRIES.items())
if name == country_name:
return code
#如果没有找到指定的国家就返回none
return None
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/leetone123/my_python.git
git@gitee.com:leetone123/my_python.git
leetone123
my_python
my_python
master

搜索帮助