双语词卡 · 常用度第 13 位

while

🌡️ 只要水没烧开就继续加热

只要括号里的条件为真,就一直循环下去。

English

🌡️ Keep repeating while condition holds

Repeats as long as the condition stays true.

代码示例

while energy > 0:
    energy -= 1
探索 100 张双语词卡 →