Commit 28343098 by BellCodeEditor

auto save

parent 10623682
Showing with 16 additions and 4 deletions
abc = input("你出啥(s/j/b)s=石头 j=剪刀 b=布")
print("你的选择是"+ abc)
a = input("你出啥(s/j/b)s=石头 j=剪刀 b=布")
print("你的选择是"+ a)
import random
computer = list("石头""剪子""布")
\ No newline at end of file
list = ["s","j","b"]
b = random.choice(list)
print("电脑出的是" + b)
if a==b:
print(平局)
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":
print("你出石头,电脑出布,但是我把电脑打晕了,强制他出了剪刀,所以你赢了")
elif a=="j" and b=="s":
print("你出剪刀,电脑出石头,但是我把电脑打晕了,强制他出了布,所以你赢了")
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