警告:这个程序有一个错误,这意味着我们需要调试它!

规则:括号必须成对使用。这个问题包含在int()命令中。

这个问题应该将用户的输入存储为int或数字,而不是字符串。

  • 点击运行并阅读错误消息。
  • 调试程序,使int()命令一直环绕sprite.ask()问题。

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)