if player[0].HP <= 0 or player[1].HP <= 0: flag2 = 1 End = threading.Thread(target=Ending) End.daemon = True End.start() #在这一步卡死