SQLAlchemy创建session方式
from threading import Thread
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker,scoped_session
import models
engine = create_engine(
"mysql+pymysql://root:[email protected]:3306/dw?charset=utf8",
max_overflow = 0, #