Commit e10b742e by BellCodeEditor

save project

parent bd53ffba
Showing with 2 additions and 2 deletions
import random import random
a=int(input("剪刀=1,石头=2,布=3")) a=int(input("剪刀=1,石头=2,布=3"))
print("="+str(a)) print("="+str(a))
l=[1,2.3] l=[1,2,3]
b=random.choice(l) b=random.choice(l)
print("c="+str(b)) print("c="+str(b))
if a==b : if a==b :
print("p") print("p")
else: else:
if (a==1 and b==2)or(a==2 and b==3)or(a==3 and b==1): if (a==1 and b==2)or(a==2 and b==3)or(a==3 and b==1):
print("SB") print("lose")
else: else:
print("yeah") print("yeah")
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