Python 嵌套循环 Python for循环质数 Python Break 语句 Python 嵌套循环 #!/usr/bin/python i = 2 while(i < 100): j = 2 while(j <= (i/j)): if not(i%j): break j = j + 1 if (j > i/j) : print i, " is prime" i = i + 1 print "Good bye!" Python for循环质数 Python Break 语句