Provided are a glucopyranosyl derivative as a sodium-dependent glucose transporters inhibitor, especially as a SGLT1 inhibitor, a pharmaceutically acceptable salt or a stereoisomer thereof, a pharmaceutical composition thereof, and the uses of the compound and pharmaceutical composition thereof in the preparation of drugs for the treatment of diabetes and diabetes-related diseases.