From e9258d2dd2804d8c5dd23766a197742caeff407f Mon Sep 17 00:00:00 2001
From: BellCodeEditor <bellcode_dev@bell.ai>
Date: Sun, 23 Jan 2022 14:23:42 +0800
Subject: [PATCH] auto save

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

diff --git a/diy1.py b/diy1.py
new file mode 100644
index 0000000..2b347c3
--- /dev/null
+++ b/diy1.py
@@ -0,0 +1,15 @@
+import random
+player=input("玩家出拳:(石头/剪刀/布)")
+print("玩家出的是:"+player)# 玩家出拳
+list=["石头","剪刀","布"]
+a=random.choice(list)
+print("人机出的是:"+a)
+if player in list:
+    if player==a:
+        print("平局")
+    elif (player=="布" and a=="石头") or (player=="石头" and a=="剪刀") or (player=="剪刀" and a=="布"):
+        print("你赢了")
+    else:
+        print("你输了")
+else:
+    print("输入错了")
\ No newline at end of file
--
libgit2 0.25.0