From 8727317b7e1c04ccd9c27fe3e87b8a672c904dac Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Tue, 16 Mar 2021 20:30:53 +0800 Subject: [PATCH] save project --- diy1.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 diy1.py diff --git a/diy1.py b/diy1.py new file mode 100644 index 0000000..23ccc60 --- /dev/null +++ b/diy1.py @@ -0,0 +1,8 @@ +# 玩家出拳 +i=input("请出(石头,剪刀或布):") +print("玩家出拳:"+i) +import random +list=["石头","剪刀","布"] +computer=random.choice(list) +print(computer) + -- libgit2 0.25.0