A math expand package
Project description
math-expand Package
这个包是对Python原生的Math包进行的拓展,目前提供的方法如下:
- digits
- take_digits(number, return_type) → list/dict
- 方法用途
- 取一个数的每一位数
- 方法解析
- 参数解析
- number
- 要取每一位数的数
- return_type
- 指定返回值的类型
- 默认为l,有l(返回列表),和d(返回字典)两种形式,其余值会导致输出一条错误信息,并返回列表。
- number
- 返回值
- 由return_type参数决定
- 返回值
- list
- 这个列表里包含了这个数从高到低每个数位的数字
- dict
- 这个字典的键是一个个计数单位,每个键对应的值便是当前键表示的计数单位上的值
- list
- 参数解析
- 方法用途
- take_digits(number, return_type) → list/dict
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mathexpand-1.1.3.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for mathexpand-1.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0bf6de37c2f1dff208592b6d076184f784bfb3f8872d6d35a15817ab21cca6fd |
|
MD5 | 6aa180307bd4a1d5fdff64ee2d1c0eb4 |
|
BLAKE2b-256 | e3ccb5726cff24200e20819e1ae5b40b17b819a9efb141a194d247927c77b29f |