python format string thousand separator with spaces -


for printing number thousand separator, 1 can use python format string :

'{:,}'.format(1234567890) 

but how can specify want space thousands separator?

here bad simple solution if don't want mess locale:

'{:,}'.format(1234567890.001).replace(',', ' ') 

Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -