Created
May 21, 2015 20:33
-
-
Save ehmo/14ee99b483a4b2456208 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> import locale | |
>>> locale.setlocale(locale.LC_ALL, 'en_US') | |
'en_US' | |
>>> = locale.format("%d", 123456789, grouping=True) | |
123,456,789 | |
>>> locale.setlocale(locale.LC_ALL, 'sk_SK') | |
'sk_SK' | |
>>> locale.format("%d", 123456789, grouping=True) | |
123 456 789 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment