Alternatively character string format and the meaning Python
Symbol | Description |
%c | Formatting characters and their ASCII code |
%s | Format string |
%d | Integer format |
in% | Unsigned int format |
%O | Formatting unsigned octal |
%x | Unsigned hexadecimal format |
%X | Unsigned hexadecimal format (uppercase) |
%f | Format floating point numbers, the point precision may be designated |
%e | Floating-point format in scientific notation |
%E | Action with% e, floating point numbers formatted in scientific notation |
%g | Determined using% f% e depending on the size of live value |
%G | Action with% g,% e living using% f value determined according to the size |
%p | With an address number of variables in hexadecimal format |
Python escape characters and their meanings
Symbol | Description |
\' | apostrophe |
\" | Double quotes |
\a | Issued a ringing sound system |
\b | Backspace |
\n | Newline |
\t | Horizontal tab |
\ v | Vertical tab |
\r | Carriage return |
\f | Page breaks |
\O | Character octal number represented |
\x | Character hexadecimal number represented |
\000 | Terminator, \ string of 000 Ignore All |