Commit efa009e1 by BellCodeEditor

save project

parent b45f0e4f
Showing with 21 additions and 1 deletions
import random
b=input("你他妈出什么?")
print("玩家出了"+b)
list=["石头","剪刀","布"]
c=random.choice(list)
print("电脑出"+c)
if c==b:
print("平局")
elif b=="石头" and c=="剪刀":
print("玩家赢")
elif b=="布" and c=="石头" :
print("玩家赢")
elif b=="剪刀" and c=="布":
print("玩家赢")
elif c=="石头" and b=="剪刀":
print("电脑赢")
elif c=="布" and b=="石头" :
print("电脑赢")
elif c=="剪刀" and b=="布":
print("电脑赢")
else:
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