第 8 步:要停止这个循环, choice的值需要是"no" 。让我们通过用户输入获得该值!
- 转到图形和.在此代码之后的 while 循环中拖动Stage Ask : stage 。等待( 1 )
- 点击运行并回答问题。当你回答是时会发生什么?苹果呢?
- 点击运行并回答no 。发生什么了? The loop condition is False when choice is "no" .
- 我们的循环不再是无限的!查找并删除这行代码: ···· print( "无限·循环!" ) ¬
To navigate the page using the TAB key, first press ESC to exit the code editor.