Commit 52c041b2 by BellCodeEditor

save project

parent 198f68f7
Showing with 13 additions and 10 deletions
......@@ -4,13 +4,16 @@ print("玩家出拳:"+p)
list=["师傅","剪刀","破布"]
a=random.choice(list)
print(a)
if p==a:
print("平局")
elif p==" 师傅 " and a=="剪刀":
print("你赢了??????")
elif p=="破布" and a=="师傅":
print("你赢了??????")
elif p=="剪刀" and a=="破布":
print("你赢了??????")
if p in list:
if p==a:
print("平局")
elif p==" 师傅 " and a=="剪刀":
print("你赢了??????")
elif p=="破布" and a=="师傅":
print("你赢了??????")
elif p=="剪刀" and a=="破布":
print("你赢了??????")
else:
print("大傻瓜")
else:
print("大傻瓜")
\ No newline at end of file
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