% D like difference

% d% 6d% .6d% -6d % .6f usage in Python language and the same c
% d represents an integer of outputting
% 6d represents the output integer 6, if integer less than 6, then fill the spaces left
% .6d said output 6 is an integer, if less than 6 is an integer, then left up 0
% 6 shows the output result retained six decimal places after the decimal point if less than 6, the right side up 0
Here Insert Picture Description

Released six original articles · won praise 0 · Views 140

Guess you like

Origin blog.csdn.net/qq_43636375/article/details/104028205