国家和货币ISO代码库

teritorio的Python项目详细描述


teritorio:ISO国家和货币代码

安装和使用

安装

teritorio可以通过运行pip install teritorio来安装。它需要python3.7.0+才能运行。在

用法

两个主要对象是CountriesCurrencies

国家/地区使用情况

fromteritorioimportCountries# list all countriesforcountryinCountries():print(country)# get a specific countrycountries=Countries()# access the country as an attributeprint(countries.DEU)# Country(english_name='Germany', french_name="Allemagne (l')", alpha_2_code='DE', alpha_3_code='DEU', numeric_code=276)# access the country with square bracketsprint(countries["DEU"])# Country(english_name='Germany', french_name="Allemagne (l')", alpha_2_code='DE', alpha_3_code='DEU', numeric_code=276)

货币使用 ^{pr2}$

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java在SWT中关闭CTabItem时如何获取警告消息?   java如何从中获取文本字符串   java带有(int[][])的方法意味着什么?   java我在创建这个安卓浮动泡泡动画时做错了什么?   将边距属性作为列表项的java表抛出异常ClassCastException   java如何在Storm拓扑中测量延迟和吞吐量   java如何在javafx中序列化事件?   java访问main()之外的线程   java如何强制某些方法仅对kotlin可见   java如何使用quartzscheduler启动具有多个crontrigger的作业?   java无法使用VM选项获取转储文件:引发OOM异常时出现HEAPDUMPONAUTOFMEMORYERROR   java无法在安卓中的FTP服务器上上载文件   java RecordView未显示   java有没有办法在Eclipse中隐藏/折叠虚张声势的注释?   java如何从xml中提取xml。广州?