python Today there was an unknown number!

In addition to more than thirty-two addition to more than fifty-three addition to more than seventy-two asked geometry?

#方法一

1
none = True 2 i = 0 3 while none: 4 i +=1 5 if i%3 == 2 and i%5 == 3 and i%7 == 2: 6 print(i) 7 none = False

 

1 #方法二
2 
3 i = 0
4 while True:
5     i +=1
6     if i%3 == 2 and i%5 == 3 and i%7 == 2:
7         print(i)
8         break

 

Guess you like

Origin www.cnblogs.com/xiaoliangliu86/p/11418374.html