sqlalchemy简单使用
sqlalchemy简单使用导入SQLAlchemyimport sqlalchemy连接数据库# sqlite数据库base_path = os.path.dirname(os.path.abspath(__file__)db_path = 'sqlite:///'+os.path.join(base_path, 'db.sqlite3')engine = sqlalchemy.create_engine(db_path, encoding='utf-8', echo=True)
原创
2020-10-21 20:56:04 ·
111 阅读 ·
0 评论