Commit 2e847715 by BellCodeEditor

save project

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