Commit 1eeb4ee0 by BellCodeEditor

auto save

parent d06536a2
Showing with 1 additions and 12 deletions
import random
a=input("玩家出拳")
print("玩家请出拳"+a)# 玩家出拳
list=["石头","布","剪刀"]
computer=random.choice(list)
print(computer)
if a==computer:
print("平局")
elif computer==("剪刀") and a==("石头") or computer==("石头") and a==("布") or computer==("布") 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