break:直接终止所有循环。continue:终止本次循环,将开始新的while循环。 i = 1 while i < 2: i += 1 if i /2 > 0: break i = 1 while i <= 10: i += 1 if i /2 > 0: continue