标签:否则 pytho import lse 就是 int sqrt bre code
1 import math 2 3 sushu = True 4 for i in range(100,300+1): 5 sushu = True 6 for j in range(2,int(math.sqrt(i))+1): 7 if i%j==0: 8 sushu = False 9 break 10 if sushu: 11 print(i)
标签:否则 pytho import lse 就是 int sqrt bre code
原文地址:https://www.cnblogs.com/zhanghx/p/9743717.html