第8步:每次循环运行时,我们需要让它询问用户一个问题,并在等待后存储用户的选择。

  • .ask() 中的参数更改为变量 question
  • Wait 拖动到循环中。
  • Append 拖动到循环中。
  • .append() 之前的列表名称更改为 user_choices 和变量 choice

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)