摘要: 在Python中,当用pymysql库,或者MySQLdb库进行数据库查询时,为了防止sql注入,可以在execute的时候,把参数单独带进去,例如: def execute_v1(): config = { 'user': 'root', 'password': 'password1', 'hos 阅读全文
posted @ 2021-04-12 12:06 Xjng 阅读(4314) 评论(0) 推荐(0) 编辑