Commit 48761fd2 by BellCodeEditor

auto save

parent 4d96e4a5
Showing with 13 additions and 0 deletions
s=input("你要出什么?")
print("玩家出拳:"+s)
import random import random
list=["石头","剪刀","布"] list=["石头","剪刀","布"]
l=random.choice(list) l=random.choice(list)
print(l) print(l)
if a in list:
if l==s:
print("平局")
elif (s=="石头" and l=="剪刀") or (s=="剪刀" and l=="布") or (s=="布" and l=="石头"):
print("你赢了")
else:
print("计算机赢")
else:
print("输入错误")
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