From 36a9b5a251f77674e392c6ec6db2791f53dc83b1 Mon Sep 17 00:00:00 2001
From: BellCodeEditor <bellcode_dev@bell.ai>
Date: Sat, 19 Jun 2021 11:21:33 +0800
Subject: [PATCH] auto save

---
 1.py    |  5 +++++
 diy1.py | 15 +++++++++++++++
 2 files changed, 20 insertions(+)
 create mode 100644 1.py

diff --git a/1.py b/1.py
new file mode 100644
index 0000000..f51a224
--- /dev/null
+++ b/1.py
@@ -0,0 +1,5 @@
+import random
+
+list=["1","2","3","4"]
+name=random.choice(list)
+print(name)
\ No newline at end of file
diff --git a/diy1.py b/diy1.py
index 4e8657e..edf078f 100644
--- a/diy1.py
+++ b/diy1.py
@@ -1 +1,16 @@
 # 玩家出拳
+import random
+b=input("请输入(剪刀/石头/布):")
+print("玩家出拳:"+b)
+list=["石头","剪刀","布"]
+a=random.choice(list)
+print("电脑出拳:"+a)
+if b in list:
+    if a==b:
+        print("平局")
+    elif(a=="石头" and b=="布") or (a=="剪刀" and b=="石头") or (a=="布" and b=="剪刀"):
+        print("恭喜你,赢了")
+    else:
+        print("恭喜你,输了")
+else:
+    print("输入错误")
\ No newline at end of file
--
libgit2 0.25.0