警告:这个程序不起作用!它有一个错误,所以我们需要修复它!

规则:变量名应该有引号!它们在编辑器中显示为橙色。

  • 点击运行并查看阶段以查看错误。
  • 调试程序,使精灵有四个紫色气球。

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

stage.set_background("city") sprite = codesters.Sprite("person2") sprite.go_to(0, -100) balloon_size = 100 # sprite = codesters.Circle(x, y, diameter, "color") balloon1 = codesters.Circle(-130, 100, balloon_size, "purple") balloon2 = codesters.Circle(-50, 125, balloon_size, "purple") balloon3 = codesters.Circle(20, 180, "balloon_size", "purple") balloon4 = codesters.Circle(105, 140, "balloon_size", "purple")
  • Run Code
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)