调用pymysql.escape_string('向数据库插入的数据')

 

例如:

import pymysql

str = 'as"sdf'

print(pymysql.escape_string(str))

 

相关文章:

  • 2022-12-23
  • 2021-11-23
  • 2021-09-16
  • 2021-12-01
  • 2022-12-23
  • 2022-12-23
  • 2021-12-29
  • 2021-09-13
猜你喜欢
  • 2022-12-23
  • 2021-12-04
  • 2021-12-31
  • 2021-12-31
  • 2021-12-14
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案