Commit 725aacb6 by BellCodeEditor

save project

parent 1afe0bc3
Showing with 4 additions and 8 deletions
......@@ -7,14 +7,9 @@ comput = random.choice(list)
print("电脑出拳:"+comput)
if play == comput
print("平局")
elif play == "石头" and comput == "剪刀"
print("你赢了")
elif (player == "石头" and comput == "剪刀")or(player == "布" and comput == "石头")or(player == "剪刀" and comput =="布"):
print("你赢了")
else:
print ("你输了")
elif play == "布" and comput == "石头"
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