Commit b4c9f842 by BellCodeEditor

save project

parent 87e740d8
Showing with 13 additions and 5 deletions
import random
player=input("傻逼快出拳:")
a=input("傻逼快出拳:") b=["石头","剪刀","布"]
print("你出了个:"+a) computer=random.choice(b)
\ No newline at end of file print("你出了个:"+player)
print("人机出了个:"+computer)
if player in b:
if player==computer:
print("平局")
elif (player=="石头" and computer=="剪刀")or(player=="剪刀" and computer=="布")or(player=="布" and computer=="石头"):
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