Answers for "what is {:02d}:{:02d} in python"

0

what is {:02d}:{:02d} in python

format() documentation. Specifically, the 02d part is documented in the Format Specification Mini-Language. 02d formats an integer ( d ) to a field of minimum width 2 ( 2 ), with zero-padding on the left (leading 0 ): >>> 'No digits: {:02d}, 1 digit: {:02d}, 2: {:02d}, 3: {:02d}'.
Posted by: Guest on January-23-2022

Python Answers by Framework

Browse Popular Code Answers by Language