The invention relates to a compound adopted as a hepatitis c inhibitor and application thereof in medicine, in particular to a compound shown in a formula (I), a stereoisomer, a tautomer, an enantiomer, a nitric oxide, a hydrate, a solvate, a metabolite and pharmaceutical acceptable salts or prodrugs of the compound shown in the formula (I). The compound is used for treating hepatitis c virus (HCV) infection or hepatitis c diseases. The invention further discloses a pharmaceutical composition comprising the compound and a method for using the compound or the pharmaceutical composition thereof for treating HCV infection or hepatitis c diseases.