用法
engine = create_engine(‘dialect+driver://username:password@host:port/database’)
dialect – 数据库类型
driver – 数据库驱动选择
username – 数据库用户名
password – 用户密码
host 服务器地址
port 端口
database 数据库
engine = create_engine(‘postgresql+psycopg2://scott:tiger@localhost/mydatabase’)