List of Python format characters


Question

I've been looking for the list Python format characters for a good 30 minutes. I can't find any.

Examples are

%d, %r

etc but I need a list with them along with a description if possible please.

1
22
12/18/2010 9:33:10 PM

Accepted Answer

Here you go, Python documentation on old string formatting. tutorial -> 7.1.1. Old String Formatting -> "More information can be found in the [link] section".

Note that you should start using the new string formatting when possible.

33
6/14/2016 4:49:30 AM


Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon