From 7cabb5c76bd6801e59656f3c96a6772f8cd07fb2 Mon Sep 17 00:00:00 2001
From: BellCodeEditor <bellcode_dev@bell.ai>
Date: Fri, 29 Jul 2022 11:57:58 +0800
Subject: [PATCH] save project

---
 diy1.py | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/diy1.py b/diy1.py
index 79dc383..51b23f3 100644
--- a/diy1.py
+++ b/diy1.py
@@ -3,4 +3,14 @@ player=input("请出拳:石头/剪刀/布")# 玩家出拳
 print("玩家出拳:"+player)
 b=["石头","剪刀","布"]
 a=random.choice(b)
-print("计算机出"+a)
\ No newline at end of file
+print("计算机出"+a)
+if player==a:
+    print("平局")
+elif player=="石头" and a=="剪刀":
+   print("恭喜,你赢了")
+elif player=="剪刀" and a=="布":
+   print("恭喜,你赢了")
+elif player=="布" and a=="石头":
+   print("恭喜,你赢了")
+else:
+   print("很遗憾,你输了")
\ No newline at end of file
--
libgit2 0.25.0