Commit a1c3c342 by BellCodeEditor

auto save

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