Commit 39f8ab4b by BellCodeEditor

save project

parent b5c6bbbe
Showing with 21 additions and 0 deletions
import random
y=0
while y<=4:
list=["1","2","3"]
a=input("出拳请您:")
print("玩家出拳:"+a)
b=random.choice(list)
print("计算机:"+b)
if a in list:
if a==b:
print("p")
elif (a==1 and b==3) or (a==2 and b==1) or (a==3 and b==2):
print("s")
else:
print("w")
y=y+1
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