int set
Abstract
Counts the number of integers. 整数を数えます。
What does this do?
Counts the number of integers that can be any integer multiple within a given start and end. 始まりと終了を指定すると、その中に含まれる任意の整数倍となる整数の数を数えます。
Very Fast!!
usage
from int_set import IntSet, step
# IntSet makes range like object
# IntSetはrangeのようのオブジェクトを作成します。
_range = IntSet(100) # start: 0 stop: 100
_range = IntSet(100, 1000) # start: 100 stop: 1000
s = step(2) # a multiple of two(2の倍数)
s = step(2,5) # a multiple of 2 or a multiple of 5(2の倍数または5の倍数)
# Count multiples of 2 or 5 between 100 and 1000.
# 100 ~ 1000に含まれる2の倍数または5の倍数の数を数えます。
_range.count(s) # 541
install
pip install int-set
Release files for int-set 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| int_set-0.1.1.tar.gz | 3.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| int_set-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.7 kB
Release files / int_set-0.1.1.tar.gz
| Download URL | int_set-0.1.1.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b17a5ffdf7baaece1421234a40c152906a41747b0d0051b3eb6e359703f46a19
|
|
BLAKE2b-256 checksum How to use checksums |
03b28a98e79048034eeb59dee073ebf9d753db7f7fdf48062f87fbc896b1de8a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.5 CPython/3.7.7 Darwin/18.7.0
|
Release files / int_set-0.1.1-py3-none-any.whl
| Download URL | int_set-0.1.1-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
43630bce7b11ff793ab07d9a22ee365db553cd3ac97460b6926fdffd7e0c2ac3
|
|
BLAKE2b-256 checksum How to use checksums |
7b5fe728335be86d258f957ba0ac7e20f61083cf92816d832a5a84c69a475f23
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.5 CPython/3.7.7 Darwin/18.7.0
|