Commit 89cf9afc by BellCodeEditor

auto save

parent c256c561
Showing with 2512 additions and 2 deletions
# 我们都爱夸夸夸
\ No newline at end of file
import random
sb=input("你是煞笔(石头/剪刀/布)")
print("玩家出"+sb)
q=["石头","剪刀","布"]
hssb=random.choice(q)
print("computer出b'h"+hssb)
if sb in q:
if sb==hssb:
print("平局")
elif (sb=="布" and hssb=="石头") or (sb=="剪刀" and hssb=="布") or (sb=="石头" and hssb=="剪刀"):
print("玩家win")
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