Commit 1b5a277b by BellCodeEditor

save project

parent a0cbfb52
Showing with 16 additions and 2 deletions
# 玩家出拳
\ No newline at end of file
# 玩家出拳
import random
while True:
n=input("请出拳(石头/剪刀/布):")
print("玩家出拳:"+n)
list=["石头","剪刀","布"]
computer=random.choice(list)
print("计算机:"+computer)
if n==computer:
print("平局")
elif (n=="剪刀" and computer=="布")or(n=="布" and computer=="石头")or(n=="石头" and computer=="剪刀"):
print("你超勇的!")
elif n == "q":
break
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