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

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

此问题会将用户的输入存储为float ,一个包含小数位值的数字。

  • 点击运行并阅读错误消息。
  • 调试程序,使float()命令环绕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)