Commit 71f3257f by BellCodeEditor

auto save

parent b3d07b50
Showing with 15 additions and 3 deletions
player=input("请出拳:s/j/b")# 玩家出拳 a=input("请出拳:s/j/b")# 玩家出拳
print("玩家出拳:"+player) print("玩家出拳:"+a)
\ No newline at end of file b=["s","j","b"]
c=random.chcice(d)
print("电脑出的是:"+c)
if a==c:
print("结果是平")
elif(a=="s" and c=="j") or (a=="j" and c=="b") or (a=="b" and c=="s"):
elif(a=="s" and c=="b") or (a=="j" and c=="s") or (a=="b" and c=="j")
else: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