第14步:当 random_choice1 时,计算机出 "rock"。让我们将这些数据存储在一个新的变量中以供以后使用。

  • 点击 ,将 String Variable 拖动到 .say() 下方最后一个 if 语句内部。
  • 将新变量的名称更改为 computer_choice
  • 将新变量的值更改为 "rock"

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)