0- print all the odds in range 0-100:
for i in range (101):
if i%2!=0: print(str(i))1-- Einstein conundrum:
for i in range (10000):
if i%2==1 and i%3==2 and i%5==4 and i%6==5 and i%7==0: print(str(i)) break本文共 263 字,大约阅读时间需要 1 分钟。
0- print all the odds in range 0-100:
for i in range (101):
if i%2!=0: print(str(i))1-- Einstein conundrum:
for i in range (10000):
if i%2==1 and i%3==2 and i%5==4 and i%6==5 and i%7==0: print(str(i)) break转载于:https://www.cnblogs.com/Shareishappy/p/6904477.html