Disclosed are a compound of formula (I), a tautomer, an optical isomer or a pharmaceutically acceptable salt thereof, and a pharmaceutical composition containing the above-mentioned compounds. The above-mentioned compounds have the activity of inhibiting Xa factor positive effect, and can be used for the preparation of a medicament for preventing and/or treating diseases inhibiting Xa factor positive effect in case of low bleeding risk.