第 12 步:接下来,我们将使用图像标签列表在舞台上随机生成精灵。

  • ,将Random Choice拖到for循环中的下一行。确保它缩进两次
  • 将变量名从my_var更改为rand_image 。每次循环运行时,这都会改变!
  • my_list更改为我们之前创建的列表image_labels 。这将立即选择一个随机图像标签!

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

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)