第18步:如果随机数为 3,我们让计算机选择 "scissors" ,并显示剪刀小精灵。

  • 点击 ,将 if 区块拖动到程序底部。
  • 将测试语句中的变量替换为 random_choic。测试其是否等于 3
  • 点击 ,将 Scissors 拖动到 if 区块中。

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)