Commit 4417e976 by BellCodeEditor

auto save

parent 15fd2ca6
Showing with 14 additions and 0 deletions
import random
list = ["剪刀","石头","布"]
ran = random.choice(list)
me = input("输入剪刀/石头/布")
if me in list:
if me == ran:
print("平局")
elif (me == "剪刀" and ran == "布") or (me == "石头" and ran == "剪刀") or (me == "布" and ran == "石头"):
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