Finish the countdown · 把倒数补完
Finish the countdown
The loop prints count, but nothing ever changes it — so it would never end. Add the one line that takes 1 off count, inside the loop.
A while loop keeps going for as long as its question is true. Something inside it has to move count towards 0, or the answer stays True for ever. That line is indented under the while, like the print above it.
把倒数补完
循环会打印 count,但没有任何地方改变它 —— 所以它永远不会结束。在循环里补上把 count 减 1 的那一行。
while 循环只要它的问题还成立就会一直跑。里面必须有什么东西让 count 朝 0 靠近,否则答案永远是 True。那一行要缩进在 while 下面,和上面的 print 一样。
The loop prints count, but nothing ever changes it — so it would never end. Add the one line that takes 1 off · 关闭 count, inside the loop. It should print 3, 2, 1. · 循环会打印 count,但没有任何地方改变它 —— 所以它永远不会结束。在循环里补上把 count 减 1 的那一行。应该打印 3、2、1。
Click Run to see the output here. · 点击“运行”查看此处输出。