The invention relates to an amidino guanido substituted aromatic heterocyclic compound represented by the general formula (I), wherein, R1, R2 can represent same or different groups, and can substitute the group at any position of the hetero-aromatic ring, can be represented as: -O-R3, -S-R3, -COOR3, -COR3, -O-COR3 and -NH-COR3, m represents a natural number such as 0,1or 2; R3 represents a hydrogen atom, linear alkyl or branched alkyl, substituted or non-substituted aromatic group or aromatic heterocyclic ring; R4 and R5 represent a hydrogen atom, linear alkyl or branched alkyl, aromatic group or aromatic heterocyclic ring; A ring represent a cycloaliphatic ring, aromatic ring, aromatic heterocyclic ring or fused heterocycle; X and Y represent carbon, nitrogen, oxygen, sulfur and the like and can be any position on the ring; B represents -COO-, -CONH-, -COS-, -CSO-, -CSNH-, -CSS-, -OCO-, -NHCO-, -SCO-, -OCS-, -NHCS-, -SCS- or the like, and n represents a natural number such as 0,1or 2. The compound disclosed in the invention has stable property, can inhibit tryptic activity proved by enzymatic activity experiments, and can be used for preparing medicines for treating acute or chronic pancreatitis.