![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据库
胖超人
chubby superman salutes you
展开
-
使用python写一个接口
代码奉上#_*_coding=utf-8 _*#__author__ = 'chubby_superman'import pymysqlfrom flask import Flaskimport flask_restfulimport jsonimport demjsondb = pymysql.connect('r','sd','ab1234_','ptest')def m...原创 2019-01-05 15:50:30 · 6012 阅读 · 0 评论 -
python3,pymysql,操作MySql数据库(可直接使用),有的时候执行sql后数据库却没有数据、sql注入漏洞、删除的风险等等。
不废话,线上代码#__author__ = 'chubby_superman' 胖超人#_*_coding=utf-8 _*import pymysqlclass db_ope(): def __init__(self,host,user,password,port,lib): self.host=host self.user=user ...原创 2019-04-08 15:53:00 · 948 阅读 · 0 评论