while格式: while 条件: 循环语句 例如: a = 0 while a < 101: print(a) a +=1 ↑输出1~100 break #中断循环 continue #停止当前循环,开始下轮循环。