Commit c785867e by BellCodeEditor

save project

parent f1e533f9
Showing with 9 additions and 2 deletions
...@@ -3,4 +3,11 @@ print("玩家出拳"+abc) ...@@ -3,4 +3,11 @@ print("玩家出拳"+abc)
import random import random
list=["s","j","b"] list=["s","j","b"]
computer=random.choice(list) computer=random.choice(list)
print(computer) print(computer)
\ No newline at end of file print("计算机出拳:"+computer)
if abc==computer:
print("平")
elif(abc=="s"and computer=="j")or(abc=="j"and computer=="b")or(abc=="b"and computer=="s"):
print("赢")
else:
print("输")
\ 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