[Newbie] Python as a frontend to other apps.

Darrell news at dorb.com
Sun Jan 23 17:00:27 EST 2000


If you use %(key) then use something like this:
>>> dic={'k1':'val1'}
>>> s="%(k1)s"
>>> s%dic
'val1'

or
>>> s="%s hello %s"
>>> s%('aaa','bbb')
'aaa hello bbb'

--
--Darrell





More information about the Python-list mailing list