参数是指令中的值,控制指令的运行方式。一个参数是你刚刚更改的字符串。其他参数控制文本的位置和颜色。 你可以使用注释作为指导。

  • 将 x 坐标更改为 0,将y坐标更改为 -200
  • 将颜色更改为 "blue"

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

stage.set_background("park") sprite = codesters.Sprite("person3") sprite.glide_to(-100, 50) # sprite = codesters.Text("text", x, y, "color") text = codesters.Text("I went to the park!", 100, 200, "red")
  • Run Code
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)