Commit 608fd84e by BellCodeEditor

save project

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