Python 代码实现输出 1 到 100 之间的所有 7 的倍数
for i in range(1, 101):
if i % 7 == 0:
print(i, end=' ')
if i % 35 == 0:
print()
输出结果:
7 14 21 28 35
42 49 56 63 70
77 84 91 98
原文地址: https://www.cveoy.top/t/topic/oXh5 著作权归作者所有。请勿转载和采集!