From da9c681bf7683b18038c7b902449b2a56644b1ac Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sat, 21 Nov 2020 09:18:55 +0800 Subject: [PATCH] save project --- Untitled-1.py.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Untitled-1.py.py b/Untitled-1.py.py index e46abb2..92a40e9 100644 --- a/Untitled-1.py.py +++ b/Untitled-1.py.py @@ -1,2 +1,11 @@ player = input("请出拳(石头/剪刀/布):") -print("玩家出拳" + player) \ No newline at end of file +print("玩家出拳" + player) +import random +random = random.randint(1,3) +if random == 1: + choice = "石头" +if random == 2: + choice = "剪刀" +if random = 3: + choice = "布" +print("计算机出拳:" + choice) \ No newline at end of file -- libgit2 0.25.0