第 11 步:让我们告诉玩家,如果他们选择了"paper"并且计算机也选择了"paper" ,则他们并列。
请记住更改 if 语句中的变量名称和值。使用其他 if 语句作为指导。
- 添加一个if and语句来测试choice是否等于"paper"和computer_choice是否等于"paper" 。
- 拖出Set Text 。通过更改.set_text()之前的变量名称将其分配给result 。
- 将.set_text()中的字符串更改为"Tie Game!"因为纸与纸联系在一起。
To navigate the page using the TAB key, first press ESC to exit the code editor.