首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Python > 在Python的金钱和货币的工作原

在Python的金钱和货币的工作原

  • 资源大小:14.58 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: python 工作 货币 金钱

资 源 简 介

python-money provides carefully designed basic Python primitives for working with money and currencies. The primary objectives of this module is to aid in the development of financial applications by increasing testability and reusability, reducing code duplication and reducing the risk of defects occurring in the code. The module defines two basic Python classes -- a Currency class and a Money class. It also pre-defines all the world"s currencies, according to the ISO 4217 standard. The classes define some basic operations for working with money, overriding Python"s addition, substraction, multiplication, etc. in order to account for working with money in different currencies. They also define currency-aware comparison operators. To avoid floating point precision errors in monetary calculations, the module uses Python"s Decimal type exclusively. The design of the module is based on the Money enterprise design pattern, as described in Martin Fowler"s &quo

文 件 列 表

python-money-0.5
setup.py
python_money.egg-info
README.txt
tests
setup.cfg
money
PKG-INFO
VIP VIP
  • 睥睨 3小时前 成为了本站会员

  • ? 5小时前 成为了本站会员

  • IATWAY 1天前 成为了本站会员

  • 大智若愚 1天前 成为了本站会员

  • Mason 1天前 成为了本站会员

  • 1天前 成为了本站会员

  • Half_Punch 2天前 成为了本站会员

  • liqing71718 2天前 成为了本站会员

  • 伟国 2天前 成为了本站会员

  • songy 2天前 成为了本站会员

0.187960s