The invention belongs to the technical field of medicines and specifically relates to a phosphodiesterase-5 inhibitor as shown in a general formula (I) and a pharmaceutically acceptable salt or a stereoisomer thereof, wherein R1, R2, R3, R4, R5, L and W are as defined in the description. The invention further relates to preparation methods of compounds, pharmaceutical compositions containing the compounds, and applications of the compounds and the pharmaceutical compositions in preparation of medicaments for treating and/or preventing diseases related to sexual dysfunction and lower urinary tract symptoms.