From 6817213167542e1d27c98e5438bd49fb45592cc3 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sat, 25 Jun 2022 15:49:40 +0800 Subject: [PATCH] auto save --- diy1.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/diy1.py b/diy1.py index 40a4cb8..42c42e8 100644 --- a/diy1.py +++ b/diy1.py @@ -1,14 +1,2 @@ player=input("请出拳:石头/剪刀/布")# 玩家出拳 print("玩家出拳:"+player) -import random -list=["剪刀","石头","布"] -computer=random.choice(list) -print("计算机出拳:"+computer) -if player==computer: - print("平局") -elif player=="石头"and computer=="剪刀": - print("玩家赢") -elif player=="剪刀"and computer=="布": - print("玩家赢") -elif player=="布"and computer=="石头": - print("玩家赢") \ No newline at end of file -- libgit2 0.25.0