警告:此程序有错误或错误。所以让我们调试它!

规则:文档字符串是一种以 3 组引号围绕文本开始和结束的注释。

  • 点击运行并阅读弹出的错误信息。然后单击确定。
  • 修复文档字符串,使其以 3 个引号开头和结尾。正确时会变成绿色!
  • 点击运行以查看您是否修复了该程序。固定好后点击提交接下来

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

def set_stage(): ""Sets the background and adds a sprite to the stage " stage.set_background("jungle") sprite = codesters.Sprite("toucan") set_stage()
  • Run Code
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)