Commit bfa63e95 by BellCodeEditor

save project

parent aa93a49f
Showing with 17 additions and 2 deletions
# 玩家出拳 asd=input("请出拳")
\ No newline at end of file print("玩家出的是:"+asd)
import random
b=["石头","剪刀","布"]
c=random.choice(b)
print("电脑出:"+c)
if asd in b:
if asd==c:
print("平局")
elif (asd=="石头"and c=="剪刀")or(asd=="布"and c=="石头")or(asd=="剪刀"and c=="布"):
print("玩家赢")
else:
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