Commit 37d2ec6f by BellCodeEditor

save project

parent 5a091c03
Showing with 3 additions and 2 deletions
...@@ -7,7 +7,7 @@ comper=random.choice(list) ...@@ -7,7 +7,7 @@ comper=random.choice(list)
print("电脑出:"+computer) print("电脑出:"+computer)
if player==comper: if player==comper:
print("平局") print("平局")
elif (player=="石头"and comper=="剪刀") or(player=="剪刀"and comper=="布") elif (player=="石头"and comper=="剪刀") or(player=="剪刀"and comper=="布"):
print("玩家胜") print("玩家胜")
elif : else:
print("电脑胜") 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