未提供项目说明
int-set的Python项目详细描述
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
fromint_setimportIntSet,step# IntSet makes range like object# IntSetはrangeのようのオブジェクトを作成します。_range=IntSet(100)# start: 0 stop: 100_range=IntSet(100,1000)# start: 100 stop: 1000s=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
- 项目
标签: