From 74f389ac050685788079073a60a76aa7fa706ac3 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sun, 14 Mar 2021 14:46:26 +0800 Subject: [PATCH] save project --- diy1.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/diy1.py b/diy1.py index 6125c9d..026b396 100644 --- a/diy1.py +++ b/diy1.py @@ -4,11 +4,11 @@ print("玩家出拳"+player) #计算机出拳 import random list=["石头","剪刀","布"] -computer=rando.choice(list) +computer=random.choice(list) print(computer) if player==computer: print("平局") -elif(player=="石头"and computer=="剪刀")or(player=="剪刀"and computer=="布")or(player=="布"and computer=="石头":) +elif(player=="石头"and computer=="剪刀")or(player=="剪刀"and computer=="布")or(player=="布"and computer=="石头"): print("你赢了") else: print("你输了") \ No newline at end of file -- libgit2 0.25.0