Oct-09-2022, 11:19 PM
Hey,
I try to print some formatted integers with padded 0.
But there is always a blank character in front of the print.
My code is:
And my output is: 000000014
There are 9 digits and a blank character. Why is there a blank char and not only 10 digits?
THX
I try to print some formatted integers with padded 0.
But there is always a blank character in front of the print.
My code is:
1 2 |
num = 14 print ( f "{num: 010d}" ) |
There are 9 digits and a blank character. Why is there a blank char and not only 10 digits?
THX