Mega Code Archive

 
Categories / Python / Development
 

Using form %(name)format, as shown here

table = {'Sjoerd': 4127, 'Jack': 4098, 'Dcab': 8637678} print 'Jack: %(Jack)d; Sjoerd: %(Sjoerd)d; Dcab: %(Dcab)d' % table