Skip to main content

No project description provided

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for int-set, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size int_set-0.1.1-py3-none-any.whl (3.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size int_set-0.1.1.tar.gz (3.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page