Commit 76106d53 by BellCodeEditor

auto save

parent b5c6bbbe
Showing with 13 additions and 0 deletions
import random
player1=input("玩家出拳(石头/剪刀/布)")
print("玩家出拳:"+player1)
list=["石头","剪刀","布"]
player2=random.choice(list)
print("赌怪卢本伟向你发起石头剪刀布挑战:"+random.choice(list))
if player1==player2:
print("平局,不错")
elif(player1=="石头" and player=="剪刀") or (player1=="布" and player2=="石头") and (player1=="剪刀" and player2=="布"):
print("你赢了,赌怪表示不服,并想要与你再来一次")
else:
print("你输了,惩罚是吃掉你自己的电脑")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment