Format strings that contain '%'

Diez B. Roggisch deetsNOSPAM at web.de
Tue Mar 8 11:44:19 EST 2005


> Will anything else work here?

Use %%

print "%%s %s" % "foo"
-- 
Regards,

Diez B. Roggisch



More information about the Python-list mailing list