Comprehensive Guide to Python's Format Specification Mini-Language
When you call str.format(), each replacement field may contain a format specifier that tells Python exactly how to rander the corrresponding argument. The specifier is introduced by a colon : and is composed of the following optional components in order: {[name][!conversion][:[[fill]align][sign][#][...