From a5618639b4fa8540c4f29e1e3fbe6ed6393a73a5 Mon Sep 17 00:00:00 2001
From: BellCodeEditor <bellcode_dev@bell.ai>
Date: Tue, 20 Oct 2020 19:36:37 +0800
Subject: [PATCH] save project

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

diff --git a/diy1.py b/diy1.py
new file mode 100644
index 0000000..89ebc81
--- /dev/null
+++ b/diy1.py
@@ -0,0 +1,16 @@
+# 玩家出拳
+import random
+player=input("你出的是什么(剪刀/石头/布)")
+print("你出的是"+player)
+list=["石头","剪刀","布"]
+cpu=random.choice(list)
+print("电脑出的是"+cpu)
+if player in list:
+    if player==cpu:
+        print("平局")
+    elif player=="布" and cpu=="石头" or player=="石头" and cpu=="剪刀" or player=="剪刀" and cpu=="布":
+        print("玩家赢")
+    else:
+        print("菜")
+else:
+    print(" 你输入了个寂寞 ")
\ No newline at end of file
--
libgit2 0.25.0