Commit 85642fa4 by BellCodeEditor

save project

parent f5c82257
Showing with 9 additions and 6 deletions
......@@ -4,9 +4,12 @@ print("玩家出拳:"+a1)
list1=["石头","剪刀","布"]
a2=random.choice(list1)
print(a2)
if a1==a2:
print("平")
elif:(a1=="布" and a2=="拳头")or(a1=="剪刀" and a2=="布")or(a1=="石头" and a2=="剪刀")
print("胜")
if a1 in list1:
if a1==a2:
print("平")
elif:(a1=="布" and a2=="拳头")or(a1=="剪刀" and a2=="布")or(a1=="石头" and a2=="剪刀")
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