From 9308bf8629ce492c3a33ee072ed7e926d5040728 Mon Sep 17 00:00:00 2001
From: BellCodeEditor <bellcode_dev@bell.ai>
Date: Sat, 23 Jan 2021 18:18:11 +0800
Subject: [PATCH] save project

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

diff --git a/diy1.py b/diy1.py
new file mode 100644
index 0000000..2397969
--- /dev/null
+++ b/diy1.py
@@ -0,0 +1,12 @@
+import random
+player = input("请玩家出拳,石头/剪刀/布")
+computer=random.choice(["石头","剪刀","布"])
+print("电脑出"+computer)
+print("玩家出"+player)
+if player==("石头","剪刀","布"):
+    if player == computer:
+        print("平局")
+    elif (player=="剪刀" and computer=="布") or (player=="布" and computer=="石头") or (player=="石头" and computer=="剪刀"):
+        print("恭喜,你赢了") 
+    else:
+        print("很遗憾,你失败了")
--
libgit2 0.25.0