They specify the format your want to print the numbers. Please check out this page for examples of some popular uses of string formatting, and this page for the full list of format specifiers.
You may try to run some of those examples and modify them to see the different effects!
Raymond
P.S. edited the title of this thread to reflect this is about string formatting