Commit e5919f9e by BellCodeEditor

save project

parent 74aedd5e
Showing with 10 additions and 2 deletions
......@@ -3,4 +3,12 @@ print("玩家出拳"+yui)
import randm
list=["s","j","b"]
computer=randm.choice(list)
print(computer)
\ No newline at end of file
print(computer)
print("机算出拳:"+computer)
if player == computer:
print("平局")
elif (player=="s" and computer=="j")or(player=="j" and computer=="b")or(player=="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