Commit b8c48301 by BellCodeEditor

auto save

parent 23dfff73
Showing with 14 additions and 0 deletions
b=input("请出石头剪刀布")
print("玩家出拳"+b)
import random
list=["剪刀","石头","布"]
a=random.choice(list)
print("电脑出拳"+a)
if b=="石头" and a=="剪刀":
print("胜利")
elif b=="布" and a=="石头":
print("胜利")
elif b=="剪刀" and a=="布":
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