Disclosed are a Bruton's tyrosine kinase inhibitor having a spiral or bridged ring structure and a preparation method thereof. The inhibitor comprises a compound of formula (I), which has the effects of inhibiting BTK activity and against malignant tumours.La présente invention concerne un inhibiteur de la tyrosine kinase de Bruton (BTK) à structure cyclique pontée ou en spirale et son procédé de préparation. L'inhibiteur comprend un composé de formule (I), qui a pour effet d'inhiber l'activité de BTK et d'agir contre les tumeurs malignes.