Commit 301f8680 by BellCodeEditor

auto save

parent 973cc4d7
Showing with 18 additions and 6 deletions
# 玩家出拳
import random
bb=input("玩家出拳(石头/剪刀/布)")
print("出拳"+bb)
list=["石头""剪刀""布"]
bbb=random.choice(list)
print("")
while True:
import random
bb=input("玩家出拳(石头/剪刀/布)")
print("出拳"+bb)
list=["石头","剪刀","布"]
bbb=random.choice(list)
print(bbb)
if bb==bbb:
print("平局")
elif bb=="石头"and bbb=="剪刀":
print("你赢了")
elif bb=="剪刀"and bbb=="布":
print("你赢了")
elif bb=="布"and bbb=="石头":
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