Red Packets Split Algorithm
Project description
RedPackets Split & Return split_list if succeed & Raise Exception if failed
Installation
pip install redpackets
Usage
import redpackets redpackets.split_dollor(total, num, min=0.01): redpackets.split_cent(total, num, min=1): # cent=False equals split_dollor # cent=True equals split_cent redpackets.split(total, num, min=None, cent=False) redpackets.cent(dollar, rate=100) redpackets.dollor(cent, rate=100)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
redpackets-1.0.5.tar.gz
(3.3 kB
view details)
Built Distribution
File details
Details for the file redpackets-1.0.5.tar.gz
.
File metadata
- Download URL: redpackets-1.0.5.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f7b55b08f3b462306ed742b84d5e696d8c491f78084ca71fc438e7a07f610c2 |
|
MD5 | aa4abf0ff996ae6b18b57f47b1963af3 |
|
BLAKE2b-256 | 15245efef8dbec6de12483fba83f648e8ab054307d8a1b64d791171187be57df |
File details
Details for the file redpackets-1.0.5-py2.py3-none-any.whl
.
File metadata
- Download URL: redpackets-1.0.5-py2.py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71e58b85c762a91dcf38ecc7269e7b7f1e47dd271c13d9544b37d0834d884512 |
|
MD5 | 96d207587a9e88ab1eadf35fb4dddc63 |
|
BLAKE2b-256 | 5c948aff289bddaafdd99104324717efed2745afc33a75469613b58dc401c5d1 |