Commit 238071e3 by BellCodeEditor

save project

parent b5c6bbbe
Showing with 17 additions and 0 deletions
# 玩家出拳
abc=input("请出拳:(石头/剪刀/布)")
print("玩家出拳"+abc)
import random
tian=("石头","剪刀","布")
tt=random.choice(tian)
print("机器出拳:"+tt)
if abc in tian:
if abc==tt:
print("平局")
elif (abc=="剪刀" and tt=="布") or (abc=='布' and tt=="石头") or (abc=="石头" and tt=="剪刀")
print("玩家赢!")
elif:
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