From 0e1059b62f5c2b4269999a1339b7f9614da95ed6 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Fri, 24 Feb 2023 20:01:07 +0800 Subject: [PATCH] save project --- diy1.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/diy1.py b/diy1.py index 9544072..49470c7 100644 --- a/diy1.py +++ b/diy1.py @@ -1,2 +1,6 @@ player=input("请出拳:石头/剪刀/布")# 玩家出拳 -print("玩家出拳:"+player) \ No newline at end of file +print("玩家出拳:"+player) +import random +list = ["石头","剪刀","布"] +computer = random.choice(list) +print("电脑出拳:" + computer) \ No newline at end of file -- libgit2 0.25.0