Python 判断一个数除以三余二

img

# 可以自己定义范围
for i in range(1000):
    if i % 3 == 2 and i % 5 == 3 and i % 7 == 2:
        print(i)