Provided are a thiophene miazines derivate with a general formula (I), a pharmaceutical salt thereof, a preparation method therefor, and an application for being used as a therapeutical agent for treating a cancer and particularly used as a CDK4 and/or CDK6 inhibitor, definitions of substituent groups in the general formula (I) being same as definitions in the specification.Linvention concerne un dérivé de miazines de tiophène de formule générale (I), un sel pharmaceutique de celui-ci, son procédé de préparation, et une application pour son utilisation en tant quagent thérapeutique pour traiter un cancer et utilisé en particulier comme inhibiteur de CDK4 et/ou CDK6, les groupes substituants de la formule générale (I) étant tels que définis dans la description.