
Python与数据库
weixin_42577503
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
python3连接数据库,通过配置文件并进行操作
1,同一目录下生产.ini文件,文件内容如下:[DEFAULT];读取数据库配置passwd = user = rootport = 3306db = zentaoip = localhostcharset = utf8[DB2]ip = 172.0.0.1port = 3306user = rootdb = zentao_grop[db3]host port = ...原创 2019-11-03 22:51:32 · 1310 阅读 · 0 评论 -
实用 Python3.* 连接MySQL数据库 实现增加删除改查处理,实现表,列参数化
实用 Python3.* 连接MySQL数据库 实现增加删除改查处理,实现表,列参数化主要注意是数据格式,在遵循sql的语法时,同时要注意Python的语法,才能达到效果,主要是小的细节#encoding=utf-8import pymysqlclass DatabaseInit(): def __init__(self,host,port,user,passwd,databas...原创 2019-11-03 01:43:31 · 313 阅读 · 0 评论