Escaping confusion with Python 3 + MySQL

INADA Naoki songofacandy at gmail.com
Sun Mar 26 10:32:27 EDT 2017


> I MEAN HOW TO DIFFERENTIATE '%S' FROM LITERAL '%' character.
>

>>> '%% %s %%s' % (42,)
'% 42 %s'

Use %%


More information about the Python-list mailing list