第19步:让计算机说出它的选择,就像我们对 "rock""scissors"做的一样。

  • Say 指令拖动到 if 区块中。
  • 将前面的名称更改为 computer ,并将 .say() 中的字符串更改为 "I choose scissors"
  • 点击 ,将 String Variable. 拖动到.say() 下方的 if 语句内部。
  • 将新变量的名称更改为 computer_choice,将其更改为 "scissors"

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)