Commit 8489a671 by BellCodeEditor

save project

parent 457edf1c
Showing with 8 additions and 4 deletions
p=input("请出拳:石头/剪刀/布")# 玩家出拳
print("玩家出拳:"+player)
print("玩家出拳:"+p)
from random import*
list=["石头","剪刀","布"]
cr=choice(list)
print("电脑出拳"+cr)
if p == cr:
if p in list:
if p == cr:
print("平局,再来一次")
elif (p=="石头" and cr=="剪刀") or (p=="剪刀" and cr=="布") or (p=="布" and cr=="石头"):
elif (p=="石头" and cr=="剪刀") or (p=="剪刀" and cr=="布") or (p=="布" and cr=="石头"):
print("计算机输了,运气真不好,恭喜你")
else:
else:
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