sqlalchemy 对 mysql 进行增删改查
视频
https://www.bilibili.com/video/BV1U64y1u77k?p=18
代码
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
@Introduce : sqlalchemy 对 mysql的增删改查
@File : test3.py
@Time : 2020-12-01 13:58
@Author : xia hua dong
@Tel : 173 179 76823
@Email : [email protected]
@pip : pip install PyMySQL
pip instal sqlalchemy
"""
# 建立于mysql的连接
from datetime import datetime
import time
from sqlalchemy import cr