Joan Miller wrote:
How to escape the first '}' in the next string?

s = "}\n{0}".format('foo')
>>> "}}\n{0}".format('foo')
'}\nfoo'


Gary Herron
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to