Commit 52c041b2 by BellCodeEditor

save project

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