Disclosed are a compound as shown in general formula I, a pharmaceutically acceptable salt, an isomer or a mixture thereof, and a solvate, a polymorph, a stable isotope derivative or a prodrug thereof. The compound of the present disclosure has comparatively strong PARP inhibitory activity and can be used for treating diseases associated with PARP, such as cancers and inflammatory diseases.