第6步: 收集用户输入信息,并用它来控制程序其余部分的运行。

  • 中,拖出 Ask。将问题字符串更改为 "Do you like soccer?"
  • 将等号左侧的变量更改为soccer_ans
  • 使用名称 soccer_ans 来提醒我们,这个变量是存储关于足球问题的答案。

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)