Commit 77eddab8 by BellCodeEditor

save project

parent ff820088
Showing with 11 additions and 2 deletions
...@@ -5,8 +5,17 @@ import random ...@@ -5,8 +5,17 @@ import random
list=["石头","剪刀","布"] list=["石头","剪刀","布"]
computer=random.choice(list) computer=random.choice(list)
print("计算机出:"+computer) print("计算机出:"+computer)
if plar=="布",computer=="石头"
print("你赢了")
elif plar=="剪刀",computer=="布"
print("你赢了")
elif plar=="石头",computer=="剪刀"
print("你输了")
if plar=="布",computer=="剪刀"
print("你输了")
elif plar="剪刀",computer=="石头"
print("你输了")
elif plar="石头",computer=="布"
......
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