标签:end tin bre break class while int style logs
求100以内的质数。
1 num = [2] 2 i = 3 3 while i < 101: 4 j = 2 5 while j < i: 6 if i % j == 0: 7 break 8 else: 9 j = j + 1 10 continue 11 else: 12 num.append(i) 13 i = i + 1 14 print(num)
标签:end tin bre break class while int style logs
原文地址:http://www.cnblogs.com/qiyunsky/p/7360527.html