第 13 步:现在,我们使用了错误的测试值。我们需要查看像素何时等于"white"

  • 将 if 块中的测试值从"yes"更改为"white"
  • 然后,将else 块.set_color()命令中的颜色从"red"更改为"white"
  • 现在,单击后,我们的方块将从绿色变为白色!

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)