Commit dfaa76c0 by BellCodeEditor

save project

parent b5c6bbbe
Showing with 16 additions and 0 deletions
import random
print=input("请出拳")
print("玩家请出拳:"+print)
# 玩家出拳
list=["剪刀""石头""布"]
d=random.chcoice(list)
print("电脑出拳:"+d)
if print==comuter:
print("平局")
elif (print=="石头"and"comuter"=="剪刀")or(print=="布"and"comuter"=="石头")or (print=="剪刀"and "comuter"=="布"):
print("恭喜你赢了")
elif:
print("很遗憾你输了")
elif:
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