Commit d33214b6 by BellCodeEditor

save project

parent 4b5104aa
Showing with 9 additions and 1 deletions
...@@ -6,5 +6,13 @@ computer= random.choice(list) ...@@ -6,5 +6,13 @@ computer= random.choice(list)
print(computer) print(computer)
if player==list: if player==list:
print("平局") print("平局")
elif player=="石头"and elif player=="石头"and list=="剪刀":
print("你赢了")
elif player=="剪刀"and list=="布":
print("你赢了")
elif player=="布"and list=="石头":
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