Commit a1c3c342 by BellCodeEditor

auto save

parent 8a473b34
Showing with 7 additions and 5 deletions
......@@ -4,13 +4,14 @@ import random
list = ["s","j","b"]
b = random.choice(list)
print("电脑出的是" + b)
if a==b:
if
if a==b:
print(平局)
elif (a=="s" and b=="j") or (a=="j" and b=="b") or (a=="b" and b=="s"):
elif (a=="s" and b=="j") or (a=="j" and b=="b") or (a=="b" and b=="s"):
print("你赢了")
elif a=="s" and b=="b":
elif a=="s" and b=="b":
print("你出石头,电脑出布,但是我把电脑打晕了,强制他出了剪刀,所以你赢了")
elif a=="j" and b=="s":
elif a=="j" and b=="s":
print("你出剪刀,电脑出石头,但是我把电脑打晕了,强制他出了布,所以你赢了")
elif a=="b" and b=="j":
elif a=="b" and b=="j":
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