From 13dbec1599bed3d826e5305c630b1fe05c8aa52a Mon Sep 17 00:00:00 2001
From: BellCodeEditor <bellcode_dev@bell.ai>
Date: Sat, 12 Dec 2020 20:52:28 +0800
Subject: [PATCH] save project

---
 diy1.py | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 diy1.py

diff --git a/diy1.py b/diy1.py
new file mode 100644
index 0000000..0cfab33
--- /dev/null
+++ b/diy1.py
@@ -0,0 +1,14 @@
+# 玩家出拳
+import random
+player=input("玩家出拳(石头/剪刀/布):")
+print("玩家出的是:",player)
+listl=['石头','剪刀','布']
+computer=random.choice(listl)
+print("计算机出的是:",computer)
+if player==computer:
+    print("平局")
+elif player=="石头" and computer=="剪刀" or player=="剪刀" and computer=="布" or player=="布" and computer=="石头":
+    print("玩家赢了")
+else:
+    print("计算机赢了")
+
--
libgit2 0.25.0