The present invention relates to a compound as shown by general formula (I), a racemate or optical isomer thereof, a pharmaceutically acceptable salt, solvate or hydrate thereof, a pharmaceutical composition comprising the compound, and a use thereof in the preparation of drugs for preventing and/or treating diseases or conditions associated with viral infections.La présente invention concerne un composé tel que représenté par la formule générale (I), un racémate ou isomère optique de celui-ci, un sel, solvate ou hydrate pharmaceutiquement acceptable de celui-ci, une composition pharmaceutique comprenant le composé, et son utilisation dans la préparation de médicaments pour la prévention et/ou le traitement de maladies ou d'affections associées à des infections virales.