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

规则:我们不能将strings和integers相加。为了解决这个问题,我们必须将integer转换为"string" 。

  • 点击运行并阅读错误消息。
  • 在 LOGIC 中,转到并在骑士的说命令之前拖动Convert to String 。
  • 确保将str()命令中的变量从my_var为money 。

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)