Commit 0923f295 by BellCodeEditor

auto save

parent 520ceaae
Showing with 16 additions and 0 deletions
player=input("请在石头剪刀布里选择:")
print("玩家出拳:"+player)
list=["石头","剪刀","布"]
import random
Robot=random.chocice(list)
print("机器出拳:"+player)
if player in list:
else:
print("出错了")
if player==Robot:
print("平局")
elif (player=="石头" and Robot=="剪刀") or (player=="剪刀" and Robot=="布") or(player=="布"and Robot=="石头"):
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