第7步:添加另一个 if 语句。 确保新语句在新的代码行上开始,并且没有缩进!

  • 点击 ,将另一个 if 区块拖动到代码中。将测试值更改为 "scissors"
  • Scissors 精灵拖动到第三个 if 语句中。
  • Say 指令拖动到同一个区块中。
  • .say() 中的字符串更改为 "I choose scissors"。 并将前面的名称更改为 player

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)