The invention relates to the compounds of formula I, their preparation and the pharmaceutical compositions containing the compounds. The invention also relates to the use of the compounds of formula I in preparing medicines, which can treat sexual dysfunction of animals including human (male and female), especially erectile dysfunction of male and the diseases in which the function of phospholipase 5 (cGMP PDE5) is involved.