Mega Code Archive
Categories
/
Python
/
Development
String output format
x = 1.23456789 print '%e | %f | %g' % (x, x, x) print "%s" % x, str(x)