I didn’t really know that you escape a % in a string by itself, not \ or anything.
So there you have it..
"1%% %s" % "hello" returns 1% hello
| pablo on Assigning dynamic/unique varia… | |
| joris on Python on Windows — Sett… | |
| saintist on Assigning dynamic/unique varia… | |
| saintist on Assigning dynamic/unique varia… | |
| hui on Django / Nginx — Making … |
Blog at WordPress.com. Theme: Cutline by Chris Pearson.
1 response so far ↓
Gnarlodious // September 12, 2009 at 3:09 pm |
Yeah that works, double the Percent Sign and the second one is escaped.