Commit c6ee6688 by BellCodeEditor

auto save

parent c11534b2
Showing with 2 additions and 2 deletions
# 玩家出拳 # 玩家出拳
import random import random
a=input("(剪刀/石头/布):") a=input("(剪刀/石头/布):")
print("玩家出拳"+a)
i=["石头","剪刀","布"]
i=["石头","剪刀","布"]
if a in i: if a in i:
print("玩家出拳"+a)
c=random.choice(i) c=random.choice(i)
print(c) print(c)
if a==c: if a==c:
......
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