You mean like this?
===========================
a = "I like {name}"
a.format(name="myself")
'I like myself'
============================

Sat, 31 Dec 2011 20:44:08 +0200 tarihinde davidfx <dgeorge2...@gmail.com> şöyle yazmış:

Thanks for your response. I know the following code is not going to be correct but I want to show you what I was thinking.

formatter = "%r %r %r %r"

print formatter % (1, 2, 3, 4)

What is the .format version of this concept?



--
Opera'nın e-posta istemcisi ile gönderildi: http://www.opera.com/mail
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to