Alir3z4 / Alir3z4/python-currencies

Countries for currencies

未关闭
#6 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement
主要语言
Python
星标
73
派生
13
PR 合并指标
30 天内没有已合并 PR

描述

Would be nice if you could just write the country and get the currency, like

```

>>> portugal = Country('PORTUGAL')
>>> portugal.get_currency()
>>> EUR
>>> portugal.get_money_format(13)
>>> '€13'
>>> portugal.get_money_format(13.99)
>>> '€13.99'
>>> portugal.get_money_format('13,2313,33')
>>> '€13,2313,33'
>>>
>>> # Displaying with currency as well
>>>
>>> portugal.get_money_with_currency_format(13)
>>> '€13 EUR'
>>> portugal.get_money_with_currency_format(13.99)
>>> '€13.99 EUR'
>>> portugal.get_money_with_currency_format('13,2313,33')
>>> '€13,2313,33 EUR'
```

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。