A compound of formula, a tautomer or stereoisomer thereof, or a pharmaceutically acceptable salt thereof, wherein, T 1 is selected from C(R 2 R 3) and N(R 4); ring A is selected from 5-6 membered heteroaryl and phenyl, wherein each of the 5-6 membered heteroaryl and phenyl is optionally substituted by one, two or three R a; R 1 is selected from C 1-6 alkyl, NH 2 -(C=O)-C 1-3 alkyl-, 5-10 membered heteroaryl-C 1-3 alkyl-, C 3-7 cycloalkyl, 5-9 membered heterocycloalkyl, 5-10 membered heteroaryl, phenyl and -C 1-6 alkyl-phenyl, wherein each of the C 1-6 alkyl, NH 2 -(C=O)-C 1-3 alkyl-, 5-10 membered heteroaryl-C 1-3 alkyl-, C 3-7 cycloalkyl, 5-9 membered heterocycloalkyl, 5-10 membered heteroaryl, phenyl and -C 1-6 alkyl-phenyl is optionally substituted by one, two or three R; each of R 2 and R 3 is independently selected from H, F, Cl, Br, I, OH, NH 2 and C 1-3 alkyl optionally substituted by one, two or three R b; R 4 is selected from Hand C 1-3 alkyl optionally substituted by one, two or three R c; each R a is independently selected from H, F, Cl, Br, I, OH, NH 2 and C 1-3 alkyl optionally substituted by one, two or three R'; each of R b and R c is independently selected from H, F, Cl, Br, I, OH and NH 2; each R is independently selected from H, F, Cl, Br, I, OH, NH 2, C 1-3 alkyl, C 1-3 alkyl-(C=O)-NH-, C 1-3 alkyl-O-(C=O)-NH-, C 3-6 cycloalkyl-(C=O)-NH- and C 1-6 alkyl-O-(C=O)-, wherein each of the C 1-3 alkyl, C 1-3 alkyl-(C=O)-NH-, C 3-6 cycloalkyl-(C=O)-NH-and C 1-6 alkyl-O-(C=O)- is optionally substituted by one, two or three R'; each R' is independently selected from F, Cl, Br, I, OH and NH 2; each of the 5-6 membered heteroaryl, 5-10 membered heteroaryl and 5-9 membered heterocycloalkyl independently contains one, two, three or four heteroatoms or heteroatomic groups independently selected from -NH-, -C(=O)-, -O-, -S- and N. T 1 is selected from C(R 2 R 3) and N(R 4); ring A is selected from 5-6 membered heteroaryl and phenyl, wherein each of the 5-6 membered heteroaryl and phenyl is optionally substituted by one, two or three R a; R 1 is selected from C 1-6 alkyl, NH 2 -(C=O)-C 1-3 alkyl-, 5-10 membered heteroaryl-C 1-3 alkyl-, C 3-7 cycloalkyl, 5-9 membered heterocycloalkyl, 5-10 membered heteroaryl, phenyl and -C 1-6 alkyl-phenyl, wherein each of the C 1-6 alkyl, NH 2 -(C=O)-C 1-3 alkyl-, 5-10 membered heteroaryl-C 1-3 alkyl-, C 3-7 cycloalkyl, 5-9 membered heterocycloalkyl, 5-10 membered heteroaryl, phenyl and -C 1-6 alkyl-phenyl is optionally substituted by one, two or three R; each of R 2 and R 3 is independently selected from H, F, Cl, Br, I, OH, NH 2 and C 1-3 alkyl optionally substituted by one, two or three R b; R 4 is selected from Hand C 1-3 alkyl optionally substituted by one, two or three R c; each R a is independently selected from H, F, Cl, Br, I, OH, NH 2 and C 1-3 alkyl optionally substituted by one, two or three R'; each of R b and R c is independently selected from H, F, Cl, Br, I, OH and NH 2; each R is independently selected from H, F, Cl, Br, I, OH, NH 2, C 1-3 alkyl, C 1-3 alkyl-(C=O)-NH-, C 1-3 alkyl-O-(C=O)-NH-, C 3-6 cycloalkyl-(C=O)-NH- and C 1-6 alkyl-O-(C=O)-, wherein each of the C 1-3 alkyl, C 1-3 alkyl-(C=O)-NH-, C 3-6 cycloalkyl-(C=O)-NH-and C 1-6 alkyl-O-(C=O)- is optionally substituted by one, two or three R'; each R' is independently selected from F, Cl, Br, I, OH and NH 2; each of the 5-6 membered heteroaryl, 5-10 membered heteroaryl and 5-9 membered heterocycloalkyl independently contains one, two, three or four heteroatoms or heteroatomic groups independently selected from -NH-, -C(=O)-, -O-, -S- and N.