The symbol string formatting table summarizes python
symbol | Explanation |
---|---|
%c | Formatting characters and their ASCII code |
%s | Format string |
%d | Integer format |
%O | Formatting unsigned octal |
%x | Unsigned hexadecimal format |
%X | Unsigned hexadecimal format (uppercase) |
%f | Fixed-point format, to specify the point precision |
%e | Scientific notation fixed-point format |
%E | Action with% e, scientific notation fixed-point format |
%g | Using% f% e or the value determined according to the size |
%G | Action with% g, or% E% F used according to the size of the determined value |