Commit 51d75f6a by BellCodeEditor

auto save

parent b5c6bbbe
Showing with 17 additions and 0 deletions
import random
# 玩家出拳
sb=input("请搓鸡")
print("玩家出:"+sb)
sb2=["剪刀","石头","布"]
sb3=random.choice(sb2)
print("出拳:"+sb3)
if sb==sb3:
print("平局")
elif (sb == "石头" and sb3 == "剪刀") or (sb == "剪刀" and sb3 =="布" ) or (sb == "布" and sb3 =="石头" ):
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