Commit 608fd84e by BellCodeEditor

save project

parent d03c7e94
Showing with 13 additions and 14 deletions
......@@ -18,14 +18,7 @@
#SB出拳r
#SB出拳s
#SB出拳t
SB出拳u#
#SB出拳o#SB出拳o
#SB出拳o#SB出拳o
#SB出拳u
#SB出拳o
#SB出拳o
#SB出拳o
......@@ -37,11 +30,16 @@ SB出拳u#
#SB出拳o
#SB出拳o
import random()# 玩家出拳
import random# 玩家出拳
a=input("剪刀/石头/布")
print("玩家出"+a)
import random()
s=random(1,3)
if(s==1)
d="剪刀"
if(s==2)
s=["剪刀","石头","布"]
d=random.choice(s)
print(d)
if(d==a):
print("平局")
elif(a=="剪刀"and d=="石头"):
elif(a=="石头"and d=="剪刀"):
elif(a=="布" and
\ 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