From 86ee5e6206dcef3d32884e1689d559c15e75798f Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sat, 26 Dec 2020 14:24:42 +0800 Subject: [PATCH] auto save --- diy1.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 diy1.py diff --git a/diy1.py b/diy1.py new file mode 100644 index 0000000..ef2003a --- /dev/null +++ b/diy1.py @@ -0,0 +1,13 @@ +poo=input("玩家请出拳:(石头/剪掉/布)") +print(input("请玩家出拳") + +gun=[“石头”,“剪刀”,“布”] +computer=random.choice(list) +print("电脑出:",computer) +if player==computer: + print("平局") +elif player=="布"and computer=="石头" or player=="剪刀" and computer=="布"or\ +player=="石头"and computer=="剪刀" + print("你赢了") +else: + print("你输了") \ No newline at end of file -- libgit2 0.25.0