Commit 65fbf88f by BellCodeEditor

auto save

parent 1c2838f8
Showing with 0 additions and 8 deletions
...@@ -4,11 +4,3 @@ import random ...@@ -4,11 +4,3 @@ import random
list=["石头","剪刀","布"] list=["石头","剪刀","布"]
comupter=random.choice(list) comupter=random.choice(list)
print(comupter) print(comupter)
if player==comupter:
print("平局")
elif (player=="布" and comupter=="石头") or (player=="石头" and comupter=="布") or (player=="剪刀" and comupter=="布")
print("你赢了")
else print("你输了"):
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