A compound of formula I, a stereoisomer, a racemate or a pharmaceutically acceptable salt thereof: wherein, R 3 and R 4 are each independently selected from: H, D, substituted or unsubstituted C 1-4 alkyl; or R 3 and R 4 together with a carbon atom connecting to them form a substituted or unsubstituted C 3-6 cycloalkyl, or R 3 and R 4 together with a carbon atom connecting to them form a substituted or unsubstituted C 3-6 epoxyalkyl; R 5 and R 6 are each independently selected from: H, a substituted or unsubstituted C 1-4 alkyl, a substituted or unsubstituted C 6-10 aryl, a substituted or unsubstituted C 3-6 cycloalkyl; or R 5 and R 6 together with a carbon atom connecting to them form a substituted or unsubstituted C 3-6 cycloalkyl; R 7 and R 8 are each independently selected from: H, halogen, a substituted or unsubstituted C 1-4 alkyl; R 9 is selected from: H, a substituted or unsubstituted C 1-4 alkyl; R 10 is selected from: a substituted or unsubstituted C 1-4 alkyl; or R 9 and R 10 together with a carbon atom connecting to them form a substituted or unsubstituted C 3-6 cycloalkyl; R 11 is selected from: a substituted or unsubstituted C 6-10 aryl, a substituted or unsubstituted C 5-10 heteroaryl; wherein the C 5-10 heteroaryl contains 1-4 heteroatoms selected from N, O or S; and the term "substituted" means having one or more (eg 1, 2, 3 or 4) substituents selected from Group A: the substituents of Group A are selected from the group consisting of H, D, halogen, a substituted or unsubstituted C 1-6 alkyl, a substituted or unsubstituted C 3-8 cycloalkyl, a substituted or unsubstituted C 1-4 alkoxy, a substituted or unsubstituted C 6-10 aryl, a substituted or unsubstituted C 5-10 heteroaryl, a substituted or unsubstituted C 6-10 aryloxy, -C NHRa'; wherein Ra' is selected from: a substituted or unsubstituted C 1-6 alkyl, a substituted or unsubstituted C 3-8 cycloalkyl; R 12 is selected from: H, D, a substituted or unsubstituted C 1-4 alkyl, a substituted or unsubstituted 3-6 membered ring; for R 3 -R 12, the term "substituted" means having one or more substituents selected from Group B; the substituents of Group B are selected from the group consisting of H, D, halogen, a substituted or unsubstituted C 1-6 alkyl, -OH, a substituted or unsubstituted C 1-4 alkoxy, 3-8 membered cyclic hydrocarbon group, amino, nitro; and, in the substituents of Group A and Group B, the term "substituted" means having one or more (e.g., 1, 2, 3, 4 or 5) substituents selected from the group consisting of D, halogen, C 1-4 alkyl, trifluoromethyl, amino, nitro, -OH. R 3 and R 4 are each independently selected from: H, D, substituted or unsubstituted C 1-4 alkyl; or R 3 and R 4 together with a carbon atom connecting to them form a substituted or unsubstituted C 3-6 cycloalkyl, or R 3 and R 4 together with a carbon atom connecting to them form a substituted or unsubstituted C 3-6 epoxyalkyl; R 5 and R 6 are each independently selected from: H, a substituted or unsubstituted C 1-4 alkyl, a substituted or unsubstituted C 6-10 aryl, a substituted or unsubstituted C 3-6 cycloalkyl; or R 5 and R 6 together with a carbon atom connecting to them form a substituted or unsubstituted C 3-6 cycloalkyl; R 7 and R 8 are each independently selected from: H, halogen, a substituted or unsubstituted C 1-4 alkyl; R 9 is selected from: H, a substituted or unsubstituted C 1-4 alkyl; R 10 is selected from: a substituted or unsubstituted C 1-4 alkyl; or R 9 and R 10 together with a carbon atom connecting to them form a substituted or unsubstituted C 3-6 cycloalkyl; R 11 is selected from: a substituted or unsubstituted C 6-10 aryl, a substituted or unsubstituted C 5-10 heteroaryl; wherein the C 5-10 heteroaryl contains 1-4 heteroatoms selected from N, O or S; and the term "substituted" means having one or more (eg 1, 2, 3 or 4) substituents selected from Group A: the substituents of Group A are selected from the group consisting of H, D, halogen, a substituted or unsubstituted C 1-6 alkyl, a substituted or unsubstituted C 3-8 cycloalkyl, a substituted or unsubstituted C 1-4 alkoxy, a substituted or unsubstituted C 6-10 aryl, a substituted or unsubstituted C 5-10 heteroaryl, a substituted or unsubstituted C 6-10 aryloxy, -C NHRa'; wherein Ra' is selected from: a substituted or unsubstituted C 1-6 alkyl, a substituted or unsubstituted C 3-8 cycloalkyl; R 12 is selected from: H, D, a substituted or unsubstituted C 1-4 alkyl, a substituted or unsubstituted 3-6 membered ring; for R 3 -R 12, the term "substituted" means having one or more substituents selected from Group B; the substituents of Group B are selected from the group consisting of H, D, halogen, a substituted or unsubstituted C 1-6 alkyl, -OH, a substituted or unsubstituted C 1-4 alkoxy, 3-8 membered cyclic hydrocarbon group, amino, nitro; and, in the substituents of Group A and Group B, the term "substituted" means having one or more (e.g., 1, 2, 3, 4 or 5) substituents selected from the group consisting of D, halogen, C 1-4 alkyl, trifluoromethyl, amino, nitro, -OH.