while
🌡️ 只要水没烧开就继续加热
只要括号里的条件为真,就一直循环下去。
English
🌡️ Keep repeating while condition holds
Repeats as long as the condition stays true.
代码示例
while energy > 0:
energy -= 1探索 100 张双语词卡 →只要括号里的条件为真,就一直循环下去。
🌡️ Keep repeating while condition holds
Repeats as long as the condition stays true.
while energy > 0:
energy -= 1探索 100 张双语词卡 →