python 近千学学生排序的问题

源程序:

m = 1000
n = 1000
while True:
if m % 7 == 3 and m % 5 == 2 and m % 3 == 1:
print(m)
break
if n % 7 == 3 and n % 5 == 2 and n % 3 == 1:
print(n)
break

n = n + 1
m = m - 1
posted @ 2024-03-28 09:31  bobo哥  阅读(8)  评论(0编辑  收藏  举报