Python 程序:输出 450 到 501 之间能被 3 整除但不能被 5 整除的数
for i in range(450, 502):
if i % 3 == 0 and i % 5 != 0:
print(i)
输出结果为:
453
456
459
462
468
471
474
477
483
486
489
492
498
501
原文地址: https://www.cveoy.top/t/topic/murV 著作权归作者所有。请勿转载和采集!