所以我一直在用 python 中的素数做一些事情,我目前正在使用这个
def isDivisible(number,divisor): if number % divisor == 0: return True return False
检查一个数是否能被除数整除。所以我想知道是否有更快的方法来做到这一点?
python division
division ×1
python ×1