From 9360a9e8a08553a01b811d51f6da06889caa7425 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sun, 20 Jun 2021 11:44:14 +0800 Subject: [PATCH] save project --- diy1.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/diy1.py b/diy1.py index ec7b29d..5a47909 100644 --- a/diy1.py +++ b/diy1.py @@ -1,3 +1,7 @@ # 玩家出拳 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