Commit d97348bf by BellCodeEditor

auto save

parent aae684a5
Showing with 16 additions and 16 deletions
player=input("请出拳:shitou/jiandao/bu")# 玩家出拳
print("玩家出拳:"+player)
input["shitou/jiandao/bu"]
input["石头/剪刀/布"]
if player==computer:
print("ping")
elif player=="shitou"and computer=="jiandao":
print("yin")
elif player=="jiandao"and computer=="bu"
print("yin")
elif player=="bu"and computer=="shitou"
print("yin")
elif player=="shitou" and computer=="bu":
print("shu")
elif player=="jiandao" and computer=="shitou":
print("shu")
elif player=="bu" and computer=="jiandao":
print("shu")
print("平局")
elif player=="石头"and computer=="剪刀":
print("获胜")
elif player=="剪刀"and computer=="布"
print("获胜")
elif player=="布"and computer=="石头"
print("获胜")
elif player=="石头" and computer=="布":
print("失败")
elif player=="剪刀" and computer=="石头":
print("失败")
elif player=="布" and computer=="剪刀":
print("失败")
else:
print("nishucuole")
\ No newline at end of file
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