Commit 80259a15 by BellCodeEditor

save project

parent 220fe62b
Showing with 13 additions and 0 deletions
# 玩家出拳
choice=input("玩家出拳:剪子,包袱,锤")
print("玩家出拳为"+choice)
import random
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("你输了")
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