From 63c56afc98cb19591ac3e618b3a77d3907b5151d Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sun, 31 Mar 2024 10:16:31 +0800 Subject: [PATCH] save project --- computer.py | 6 ++++++ diy1.py | 2 ++ 2 files changed, 8 insertions(+) create mode 100644 computer.py create mode 100644 diy1.py diff --git a/computer.py b/computer.py new file mode 100644 index 0000000..09b9e87 --- /dev/null +++ b/computer.py @@ -0,0 +1,6 @@ +player = input("请出拳(石头/剪刀/布):") +print("玩家出拳:" + player) +import random +list=["石头","剪刀","布"] +computer=random.choice(list) +print(computer) \ No newline at end of file diff --git a/diy1.py b/diy1.py new file mode 100644 index 0000000..9544072 --- /dev/null +++ b/diy1.py @@ -0,0 +1,2 @@ +player=input("请出拳:石头/剪刀/布")# 玩家出拳 +print("玩家出拳:"+player) \ No newline at end of file -- libgit2 0.25.0