Python:ValueError:索引1处不支持的格式字符'''(0x27)

Python:ValueError:索引1处不支持的格式字符'''(0x27),第1张

Python:ValueError:索引1处不支持的格式字符'''(0x27)

看起来python会将%解释为类似printf的格式字符。尝试使用%%?

"SELECt fileid FROM files WHERe description LIKE '%%%s%%'     OR filename LIKE '%%%s%%'     OR uploader LIKE '%%%s%%'     ORDER BY fileid DESC" % (search, search, search)


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5673693.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-17
下一篇 2022-12-16

发表评论

登录后才能评论

评论列表(0条)

保存