Commit 502ac77e by BellCodeEditor

save project

parent ec968967
Showing with 7 additions and 2 deletions
...@@ -4,4 +4,9 @@ print("玩家是:"+player) ...@@ -4,4 +4,9 @@ print("玩家是:"+player)
import random import random
list=["sb","zz","xxs"] list=["sb","zz","xxs"]
computer=random.choice(list) computer=random.choice(list)
print(computer) print("计算机是:"+computer)
\ No newline at end of file if player==computer:
print("平局,啥也不是")
elif (player=="sb" and computer=="zz")
or(player=="zz" and computer=="xxs")
or
\ 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