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
* Joan Miller:
How to escape the first '}' in the next string?
s = "}\n{0}".format('foo')
s = "}}\n{0}".format('foo')
Cheers & hth.,
- Alf
--
http://mail.python.org/mailman/listinfo/python-list
How to escape the first '}' in the next string?
s = "}\n{0}".format('foo')
--
http://mail.python.org/mailman/listinfo/python-list