escape von % in zeichenkette
Verfasst: Freitag 27. März 2009, 13:12
Hallo,
ich hab ne Frage, die ich mit mir Google und Python Doc nicht beantworten kann. Ich möchte folgendes machen:
Ausgabe:
"%(s)s abc"
Wie escape ich also "%(s)s" ?
ich hab ne Frage, die ich mit mir Google und Python Doc nicht beantworten kann. Ich möchte folgendes machen:
Code: Alles auswählen
print "%(s)s %s" % "abc"
"%(s)s abc"
Wie escape ich also "%(s)s" ?