Commit a8c813be by BellCodeEditor

auto save

parent b5c6bbbe
Showing with 26 additions and 0 deletions
import random
list=("石头","剪刀","布")
A=input("请出拳(石头/剪刀/布):")
SD=random.choice(list)
print("玩家出:"+A)
print("电脑出:"+SD)
if A==SD:
print("平局")
elif (A=="石头" and SD=="布") or (A=="剪刀" and SD=="石头") or (A=="布" and SD=="剪刀"):
print("你输了")
else:
print("你赢了")
else:
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