A compound of formula, a cis or trans isomer, (-) or (+) enantiomer, or enantiomer, diastereomer, or isomer or a racemic or other mixture thereof or a pharmaceutically acceptable salt thereof, wherein, the carbon atom with "*" is a chiral carbon atom present in a form of a single or enantiomer or in a form enriched with one enantiomer; the carbon atom with "#" is a chiral carbon atom present in a form of a single enantiomer or in a form enriched with enantiomer; X is selected from the group consisting of CH and N; Y is selected from the group consisting of CR 2 and N; n is selected from the group consisting of 0, 1, 2 and 3; L is selected from the group consisting of -O- and -CR 3 R 4 -; R 1 is selected from the group consisting of C 1-6 alkyl, wherein the C 1-6 alkyl is optionally substituted with 1, 2 or 3 R a; R 2 is selected from the group consisting of H, CN, NH 2, halogen, C 1-6 alkyl, C 1-6 alkyl-O-, NHR b, N(R c) 2, C 3-6 cycloalkyl, -C(=O)R d, -C(=O)-O-R e, -O-C(=O)-R e, -S(=O) 2 R f and -S(=O)R g; R 3 and R 4 are each independently selected from the group consisting of H, halogen and C 1-3 alkyl, wherein the C 1-3 alkyl is optionally substituted with 1, 2 or 3 R h; alternatively, R 3 and R 4 are linked to form a 3-6 membered saturated ring, wherein the 3-6 membered saturated ring is optionally substituted with 1, 2 or 3 R i; R a, R b, R c, R d, R e, R f, R g, R h and R i are each independently selected from the group consisting of F, Cl, Br, I, OH, CN, NH 2, C 1-6 alkyl, C 1-6 heteroalkyl, C 3-6 cycloalkyl, 3-6 membered heterocycloalkyl, phenyl and 5-6 membered heteroaryl, wherein the C 1-6 alkyl, C 1-6 heteroalkyl, C 3-6 cycloalkyl, 3-6 membered heterocycloalkyl, phenyl and 5-6 membered heteroaryl are optionally substituted with 1, 2 or 3 R; R is each independently selected from the group consisting of F, Cl, Br, I, OH, CN, NH 2, CH 3, and the C 1-6 heteroalkyl, 3-6 membered heterocycloalkyl and 5-6 membered heteroaryl each contain 1, 2, 3 or 4 heteroatoms or heteroatom groups independently selected from the group consisting of -NH-, -O-, -S- and N. the carbon atom with "*" is a chiral carbon atom present in a form of a single or enantiomer or in a form enriched with one enantiomer; the carbon atom with "#" is a chiral carbon atom present in a form of a single enantiomer or in a form enriched with enantiomer; X is selected from the group consisting of CH and N; Y is selected from the group consisting of CR 2 and N; n is selected from the group consisting of 0, 1, 2 and 3; L is selected from the group consisting of -O- and -CR 3 R 4 -; R 1 is selected from the group consisting of C 1-6 alkyl, wherein the C 1-6 alkyl is optionally substituted with 1, 2 or 3 R a; R 2 is selected from the group consisting of H, CN, NH 2, halogen, C 1-6 alkyl, C 1-6 alkyl-O-, NHR b, N(R c) 2, C 3-6 cycloalkyl, -C(=O)R d, -C(=O)-O-R e, -O-C(=O)-R e, -S(=O) 2 R f and -S(=O)R g; R 3 and R 4 are each independently selected from the group consisting of H, halogen and C 1-3 alkyl, wherein the C 1-3 alkyl is optionally substituted with 1, 2 or 3 R h; alternatively, R 3 and R 4 are linked to form a 3-6 membered saturated ring, wherein the 3-6 membered saturated ring is optionally substituted with 1, 2 or 3 R i; R a, R b, R c, R d, R e, R f, R g, R h and R i are each independently selected from the group consisting of F, Cl, Br, I, OH, CN, NH 2, C 1-6 alkyl, C 1-6 heteroalkyl, C 3-6 cycloalkyl, 3-6 membered heterocycloalkyl, phenyl and 5-6 membered heteroaryl, wherein the C 1-6 alkyl, C 1-6 heteroalkyl, C 3-6 cycloalkyl, 3-6 membered heterocycloalkyl, phenyl and 5-6 membered heteroaryl are optionally substituted with 1, 2 or 3 R; R is each independently selected from the group consisting of F, Cl, Br, I, OH, CN, NH 2, CH 3, and the C 1-6 heteroalkyl, 3-6 membered heterocycloalkyl and 5-6 membered heteroaryl each contain 1, 2, 3 or 4 heteroatoms or heteroatom groups independently selected from the group consisting of -NH-, -O-, -S- and N.