Commit 25677fdf by BellCodeEditor

save project

parent 9ff17294
Showing with 14 additions and 3 deletions
player=input("石头\剪刀\布")# 玩家出拳 me=input("你出拳:石头/剪刀/布")
pri print("你的出拳:"+me)
\ No newline at end of file import random
sb=["石头","剪刀","布"]
asbf=random.choice(sb)
print("电脑的出拳:"+asbf)
if me == asbf:
print("平局")
elif (me=="剪刀" and asbf=="布") or (me=="石头" and asbf=="剪刀") or (me=="布" and asbf=="石头"):
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