Commit 80067a79 by BellCodeEditor

auto save

parent eeb5c1a8
Showing with 6 additions and 6 deletions
...@@ -7,9 +7,9 @@ print("电脑出"+computer) ...@@ -7,9 +7,9 @@ print("电脑出"+computer)
if player in list if player in list
if player==computer: if player==computer:
print("平局") print("平局")
elif player=="石头" and computer=="布": elif(player=="石头" and computer=="剪刀") and ( player=="剪刀" and computer=="布")
print("电脑胜")
elif player=="石头" and computer=="剪刀":
print("玩家胜") print("玩家胜")
else else
print("输入错误") print("电脑输")
\ No newline at end of file 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