关于比利时的共同数据
commondata.be的Python项目详细描述
Common data关于 比利时。在python中免费提供和维护。
注:我们正在讨论这个包裹是否有意义。 见http://lino-framework.org/tickets/109.html
这目前包括一个多语种的比利时地名列表 有邮政编码。
免责声明:这根本没有保证。
用法示例:
>>> from commondata.be.places import root >>> belgium = root() >>> print(', '.join([x.fr for x in belgium.children])) Bruxelles, Région flamande, Région wallonne >>> print(', '.join([x.nl for x in belgium.children])) Brussel, Vlaams Gewest, Wallonië >>> wallonia = belgium.children[2] >>> print(', '.join([x.fr for x in wallonia.children])) Namur, Liège, Hainaut, Limbourg, Brabant wallon >>> print(', '.join([x.nl for x in wallonia.children])) Namen, Luik, Henegouwen, Limburg, Waals-Brabant
当我们继续改变“城市”时,下列数字将减少 “村”或“乡”条目:
>>> liege = wallonia.children[1] >>> len(liege.children) 353 >>> eupen = liege.get(fr="Eupen") >>> print(eupen.zip_code) 4700