The present invention relates to the field of pharmaceutical chemistry and pharmacotherapeutics, and in particular to compounds of general formula I, racemates, R-isomers, S-isomers, and pharmaceutically acceptable salts thereof and their mixtures, and the preparation methods thereof and a pharmaceutical composition containing the compounds and uses thereof as an acetylcholine esterase inhibitor.