From ac31aff49e5fcd0e72f806213a0cba4664f2854a Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Wed, 26 Jul 2023 06:21:41 +0300 Subject: [PATCH] save project --- diy1.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/diy1.py b/diy1.py index 5c2dd37..75bc7e8 100644 --- a/diy1.py +++ b/diy1.py @@ -1,3 +1,6 @@ player=input("请出拳:石头/剪刀/布")# 玩家出拳 print("玩家出拳:"+player) -player=input() \ No newline at end of file +import random +list=["石头","剪刀","布"] +comtuter=random.choice(list) +print(computer) \ No newline at end of file -- libgit2 0.25.0