Python 操做 MySQL 通用代码

文章目录 封装成类 经常使用建表SQL 基础补充 封装成类 import pymysql class Mysql: def __init__(self): self.db = pymysql.connect('localhost', 'root', 'yellow', charset='utf8', db=库名) self.cursor = self.
相关文章
相关标签/搜索