Commit caaf5969 by BellCodeEditor

save project

parent 74a0f24e
Showing with 8 additions and 0 deletions
...@@ -5,3 +5,11 @@ import random ...@@ -5,3 +5,11 @@ import random
list=["石头","剪刀","布"] list=["石头","剪刀","布"]
computer=random.choice(list) computer=random.choice(list)
print(computer) print(computer)
if player==computer
print("平")
elif (player=="石头" and computer=="剪刀") or (computer=="石头" and player=="布") or (computer=="布" and player=="剪刀"):
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