How to format a floating number to fixed width in Python,print('{:10.4f}'.format(x))