Escape curly bracket together to a variable extension

Joan Miller peloko45 at gmail.com
Sat Mar 6 13:33:17 EST 2010


How to escape the first '}' in the next string?

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



More information about the Python-list mailing list