![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
模板
褶皱的包子
XXXXXXXXXXXXXXXXXXXXX
展开
-
mysql 使用模板
将数据库封装成类,单独保存为一个文件,文件名为mysql_template.py import pymysql class SqlHelper(): def __init__(self,host,port,db,user,password): self.host=host self.port=port self.db=db ...原创 2018-09-20 15:19:22 · 1593 阅读 · 0 评论 -
MongoDB 使用模板
直接上代码,更多的详细说明在代码中体现,更多详细使用方式,可查看: https://blog.csdn.net/qq_37193537/article/details/82388638 https://blog.csdn.net/qq_37193537/article/details/82388461 import datetime from pymongo import MongoCli...原创 2018-09-20 15:52:22 · 709 阅读 · 0 评论