> >>> s = "{0} {1} {2} {3}"
> >>> s.format(1, 2, 3, 4)
> '1 2 3 4'
Or even
    In [4]: fmt = '{0} {1} {2} {3}'.format
    In [5]: print(fmt(1, 2, 3, 4))
    1 2 3 4

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to