Commit c52ec43d by BellCodeEditor

save project

parent 2be30ca7
Showing with 10 additions and 9 deletions
......@@ -5,12 +5,13 @@ print("玩家出:"+sb)
sb2=["剪刀","石头","布"]
sb3=random.choice(sb2)
print("出拳:"+sb3)
if sb==sb3:
print("平局")
elif (sb == "石头" and sb3 == "剪刀") or (sb == "剪刀" and sb3 =="布" ) or (sb == "布" and sb3 =="石头" ):
print("赢")
if sb in sb2:
if sb==sb3:
print("平局")
elif (sb == "石头" and sb3 == "剪刀") or (sb == "剪刀" and sb3 =="布" ) or (sb == "布" and sb3 =="石头" ):
print("赢")
else :
print("输")
else :
print("输")
\ No newline at end of file
print("输错了")
\ 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