Commit f0a0eeac by BellCodeEditor

save project

parent 0e6f2b86
Showing with 4 additions and 0 deletions
......@@ -7,9 +7,12 @@ print("电脑出拳:"+pc)
while player in list:
if (player == "石头" and pc == "布") or (player == "剪刀" and pc == "布") or (player == "石头" and pc == "石头"):
print("你赢了!")
break
elif player == pc:
print("平局!")
break
else:
print("你输了!")
break
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