From 46876c2f47b4fe260bc8e0724c36227ca31a8b06 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sun, 7 Mar 2021 17:25:16 +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..4a440b4 --- /dev/null +++ b/diy1.py @@ -0,0 +1,12 @@ +import random +player=input("请出拳:(石头/剪刀/布)") +print("玩家出拳:"+player)# 玩家出拳 +list=["石头","剪刀","布"] +computer=random.choice(list) +print("电脑出拳:"+computer) +if player==computer: + print("智障你干吗学我?我鄙视你") +elif(player=="石头"and computer=="剪刀")or(player=="布"and computer=="石头")or(player=="剪刀"and computer=="布"): + print("sb就这?只不过我大意了而已!") +else: + print("菜鸡就这吗,我一只手都能赢你,哈哈哈哈") \ No newline at end of file -- libgit2 0.25.0