Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.python
Escape curly bracket together to a variable extension
Joan Miller
3/6/2010 6:33:00 PM
How to escape the first '}' in the next string?
s = "}\n{0}".format('foo')
2 Answers
Alf P. Steinbach
3/6/2010 6:38:00 PM
0
* Joan Miller:
> How to escape the first '}' in the next string?
>
> s = "}\n{0}".format('foo')
s = "}}\n{0}".format('foo')
Cheers & hth.,
- Alf
Gary Herron
3/6/2010 6:42:00 PM
0
Joan Miller wrote:
> How to escape the first '}' in the next string?
>
> s = "}\n{0}".format('foo')
>
>>> "}}\n{0}".format('foo')
'}\nfoo'
Gary Herron
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Escape curly bracket together to a variable extension
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password