A compound represented by formula or a pharmaceutically acceptable salt thereof, wherein the structural unit can be replaced by each of X 1, X 2, X 3, X 4 independently represents N or optionally substituted CH; R 2 is selected from a C 1-6 alkyl or a C 2-6 alkenyl which is optionally substituted by 0∼3 halogen, NH 2, CN or OR 4, one of -C(=O)-, -S(=O)- or -S(=O) 2 - is optionally inserted into the carbon chain; R 4 is H; Z represents optionally substituted NH, (R 5) t (CH 2) q or (CH 2) q (R 5) t, R 5 is selected from C=O, C=S, S(=O), S(=O) 2, O or S, t is 0 or 1, q is 0, 1, 2 or 3, t and q are not 0 at the same time; each of U or V independently represents optionally substituted r1 (R 6) r2 (CH 2) r3, (R 6) r2 r1 (CH 2) r3, (CH 2) r3 r1 (R 6) r2, r1 (CH 2) r3 (R 6) r2, (R 6) r2 (CH 2) r3 r1 or (CH 2) r3 (R 6) r2 r1, R 6 is selected from C=O, C=S, S(=O), S(=O) 2, O or S, each of r 1, r 3 is independently selected from 0, 1, 2 or 3, r 2 is 0 or 1, that r 1, r 2 and r 3 are 0 simultaneously means that U or V represents a single bond only for the linkage, and U and V are not single bonds at the same time; L represents O, S, S=O, S(=O) 2 or optionally substituted NH; the substituent in L is selected from the group consisting of -C(=O)OC 1-6 alkyl, -C(=O)C 1-6 alkyl, -S(=O) 2 C 1-6 alkyl, -S(=O) 2 C 3-5 cycloa|kyl, -C(=O)C 3-5 cycloalkyl, -C(=O)OC 3-6 cycloalkyl and -CHO which is unsubstituted or substituted by a halogen or a hydroxyl or an amino; the substituent in Z, U, V, X 1, X 2, X 3, X 4 is selected from a halogen, CN, =O, =S, OH, SH, NH 2, PH 2; optionally, the compound or the pharmaceutically acceptable salt thereof contains one or more than one chiral centers; one of D 1-4 is selected from a single bond or -C(R d1)(R d2)-, another is selected from -C(R d1)(R d2)-, -C(=O) -, -S(=O)- or -S(=O) 2 -, the remaining two are selected from -C(R d1)(R d2)-; each of R d1, R d2 is independently selected from F, Cl, Br, I, CN, CF 3, NH 2, CH 3, CH 2 NH 2 or CH(NH 2) 2. each of X 1, X 2, X 3, X 4 independently represents N or optionally substituted CH; R 2 is selected from a C 1-6 alkyl or a C 2-6 alkenyl which is optionally substituted by 0∼3 halogen, NH 2, CN or OR 4, one of -C(=O)-, -S(=O)- or -S(=O) 2 - is optionally inserted into the carbon chain; R 4 is H; Z represents optionally substituted NH, (R 5) t (CH 2) q or (CH 2) q (R 5) t, R 5 is selected from C=O, C=S, S(=O), S(=O) 2, O or S, t is 0 or 1, q is 0, 1, 2 or 3, t and q are not 0 at the same time; each of U or V independently represents optionally substituted r1 (R 6) r2 (CH 2) r3, (R 6) r2 r1 (CH 2) r3, (CH 2) r3 r1 (R 6) r2, r1 (CH 2) r3 (R 6) r2, (R 6) r2 (CH 2) r3 r1 or (CH 2) r3 (R 6) r2 r1, R 6 is selected from C=O, C=S, S(=O), S(=O) 2, O or S, each of r 1, r 3 is independently selected from 0, 1, 2 or 3, r 2 is 0 or 1, that r 1, r 2 and r 3 are 0 simultaneously means that U or V represents a single bond only for the linkage, and U and V are not single bonds at the same time; L represents O, S, S=O, S(=O) 2 or optionally substituted NH; the substituent in L is selected from the group consisting of -C(=O)OC 1-6 alkyl, -C(=O)C 1-6 alkyl, -S(=O) 2 C 1-6 alkyl, -S(=O) 2 C 3-5 cycloa|kyl, -C(=O)C 3-5 cycloalkyl, -C(=O)OC 3-6 cycloalkyl and -CHO which is unsubstituted or substituted by a halogen or a hydroxyl or an amino; the substituent in Z, U, V, X 1, X 2, X 3, X 4 is selected from a halogen, CN, =O, =S, OH, SH, NH 2, PH 2; optionally, the compound or the pharmaceutically acceptable salt thereof contains one or more than one chiral centers; one of D 1-4 is selected from a single bond or -C(R d1)(R d2)-, another is selected from -C(R d1)(R d2)-, -C(=O) -, -S(=O)- or -S(=O) 2 -, the remaining two are selected from -C(R d1)(R d2)-; each of R d1, R d2 is independently selected from F, Cl, Br, I, CN, CF 3, NH 2, CH 3, CH 2 NH 2 or CH(NH 2) 2.