警告:这个程序有一个错误,这意味着它需要修复!这个错误是一个语法错误!语法错误是由不遵循编码规则并创建错误消息的代码引起的。
规则:您必须在分配命令之前创建一个精灵。程序按顺序运行,从上到下。

  • 点击运行并阅读错误消息。
  • 修复代码的顺序,以便精灵在移动之前创建。

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

stage.set_background("baseballfield") sprite.set_speed(1) sprite.move_up(50) sprite.move_right(75) sprite.move_left(200) sprite = codesters.Sprite("person2")
  • Run Code
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)