Skip to content

Instantly share code, notes, and snippets.

@msbanik
Created October 18, 2013 05:42
Show Gist options
  • Save msbanik/7036976 to your computer and use it in GitHub Desktop.
Save msbanik/7036976 to your computer and use it in GitHub Desktop.
python string format specifier
format_spec ::= [[fill]align][sign][#][0][width][,][.precision][type]
fill ::= <a character other than '{' or '}'>
align ::= "<" | ">" | "=" | "^"
sign ::= "+" | "-" | " "
width ::= integer
precision ::= integer
type ::= "b" | "c" | "d" | "e" | "E" | "f" | "F" | "g" | "G" | "n" | "o" | "s" | "x" | "X" | "%"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment