From 1d5941e1bd77f0e26a729ade5295ffbc3e4fb90b Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Wed, 20 Nov 2024 15:17:59 +0800 Subject: [PATCH] auto save --- 1.py | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/1.py b/1.py index 4050016..770eab4 100644 --- a/1.py +++ b/1.py @@ -1,24 +1 @@ -#玩家出拳 -player = input("玩家出拳(剪刀、石头、布):") -print("玩家出拳:" + player) - -#计算机出拳 -import random -list = ["剪刀","石头","布"] -computer = random.choice(list) -print("计算机出拳:" + computer) - -#判断胜负 -if player in list: - if player == computer: - print("平局") - elif player == "剪刀" and computer == "布": - print("玩家赢") - elif player == "石头" and computer == "剪刀": - print("玩家赢") - elif player == "布" and computer == "石头": - print("玩家赢") - else: - print("计算机赢") -else: - print("输入错误!") \ No newline at end of file +input \ No newline at end of file -- libgit2 0.25.0