From ebdf49fba4907d80a5de7d1411f61c0fe7518386 Mon Sep 17 00:00:00 2001
From: BellCodeEditor <bellcode_dev@bell.ai>
Date: Sun, 13 Mar 2022 14:21:49 +0800
Subject: [PATCH] save project

---
 diy1.py |  9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/diy1.py b/diy1.py
index afd86cb..5d3334f 100644
--- a/diy1.py
+++ b/diy1.py
@@ -5,4 +5,11 @@ player("玩家出的是"+player)
 import random
 list=["石头","剪刀","布"]#建列表
 computer=random.choice(list)
-print("计算机出的是:"+computer)
\ No newline at end of file
+print("计算机出的是:"+computer)
+#判断结果
+if computer==player:
+    print("是平局")
+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