+ 3

"'{ is another part of {0}".format("}")

could anyone tell me how to be express as '{' and '}' in the string before '.format'.my english is not good, if my question is not clear you can ask me.

25th Aug 2016, 1:56 PM
vvwvvv
7 Respuestas
0
Me too... my english is not good where are you from?
25th Aug 2016, 2:20 PM
Djaber Meghar
Djaber Meghar - avatar
0
I'm Algerian and i speak arabic
25th Aug 2016, 2:20 PM
Djaber Meghar
Djaber Meghar - avatar
0
china and i speak chinese
25th Aug 2016, 2:24 PM
vvwvvv
0
ok I'm from Algeria and i speak arabic
26th Aug 2016, 12:54 PM
Djaber Meghar
Djaber Meghar - avatar
0
Try escaping the char, e.g \{
9th Oct 2016, 4:17 PM
Yanru Bi (Alice)
Yanru Bi (Alice) - avatar
0
3q
17th Oct 2016, 1:02 PM
vvwvvv
0
Escaping characters like \{ doesn't work here, use double brackets instead. Your code doesn't work because you have unclosed bracket at the start. So use "{{ is another part of {0}".format("}")
22nd Jan 2017, 6:25 AM
Ильяс Ямилев
Ильяс Ямилев - avatar