Commit 64ac9869 by BellCodeEditor

auto save

parent c256c561
Showing with 16 additions and 2 deletions
# 我们都爱夸夸夸
\ No newline at end of file
import random
list=["剪刀","石头","布"]
b=random.choice(list)
a=input("我们要剪刀石头布,你要出什么?")
print("你"+a)
print(b)
if a in list:
if a==b:
print("平局")
elif (a=="剪刀" and b=="布") or (a=="石头" and b=="剪刀") or (a=="布" and b=="石头"):
print("win")
else:
print("bad")
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