松开鼠标时

def on_mouse_release(x, y, button, modifiers):
    """ 松开鼠标时 """ 
    if button == MouseKeyCode.LEFT:
        mouse.release()
    elif button == MouseKeyCode.RIGHT:
        mouse.right_release()