Commit 4c6fa787 by BellCodeEditor

save project

parent 220fe62b
Showing with 28 additions and 0 deletions
import random
f=0
a=input("剪刀/石头/布")
print("玩家出"+a)
if(a=="剪刀"):
f=1
if(a=="石头"):
f=2
if(a=="布"):
f=3
a=f
z=["剪刀","石头","布"]
s=random.choice(z)
print("人机出"+s)
if(s=="剪刀"):
f=1
if(s=="石头"):
f=2
if(s=="布"):
f=3
s=f
if(s==a):
print("平")
elif(s<a):
print("S")
elif(a<s):
prunt("y")
\ No newline at end of file
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