Commit d97348bf by BellCodeEditor

auto save

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