第 3 步:让我们使用索引从stage_list中获取第一个值。

  • 并将Get Value at Index放在程序底部。
  • 变量名my_var更改为stage_image
  • 列表名称my_list更改为stage_list

我们的命令将在列表中存储第一个值 index [ 0 ] ,因此stage_image现在存储了"moon"

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

######################################################################## # PLACE LIST CREATIONS HERE # ######################################################################## stage_list = ["moon", "mars", "jupiter", "pluto", "space", "city"] ######################################################################## # PLACE ALL OTHER CODE BELOW THIS # ########################################################################
  • Run Code
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)