From 97e1deb269d9a458520ccb725a8ecb0537ed004d Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sun, 15 May 2022 19:48:13 +0800 Subject: [PATCH] save project --- diy1.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/diy1.py b/diy1.py index e3b6c1f..970e98e 100644 --- a/diy1.py +++ b/diy1.py @@ -1,3 +1,6 @@ - -Pe=input('你出的是石头/剪刀/布') -print("玩家出的是布") \ No newline at end of file +import random +list=["石头","剪刀","布"] +pe=input('你出的是石头/剪刀/布:') +print(pe) +computer=random.choice(list) +print(computer) \ No newline at end of file -- libgit2 0.25.0