Disclosed are a phthalic hydrazide (phthalazine ketone) compound, and a pharmaceutical composition comprising the same. As a DNA repair enzyme poly (ADP-ribozyme) polymerase inhibitor, the compound and the pharmaceutical composition can effectively treat diseases involving PARP enzymatic activity, including cancer, neural degenerative diseases, inflammation and the like.