Commit 457edf1c by BellCodeEditor

save project

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