第3步:我们可以使用关键字 and 来同时测试两件事情:choicecomputer_choice

  • 在 LOGIC 中,点击 ,将 if and 拖动到程序底部。
  • 将第一个测试变量更改为 choice ,将第二个测试变量更改为 computer_choice
  • 点击 ,将 Set Text 拖动到 if-and 语句内部。
  • .set_text() 指令前面的名称更改为 result

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)