Commit ec6731db by BellCodeEditor

save project

parent b5c6bbbe
Showing with 17 additions and 0 deletions
# 玩家出拳
choice=input("玩家出拳:剪子,包袱,锤")
print("玩家出拳为"+choice)
import random
list=["剪子","包袱","锤"]
if choice in list:
letter=random.choice(list)
print("计算机出拳为"+letter)
if choice==letter:
print("平了,再来")
elif (choice=="剪子" and letter=="包袱") or (choice=="包袱" and letter=="锤") or (choice=="锤" and letter=="剪子"):
print("恭喜你赢了")
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