Что такое {: 02d}: {: 02d} в 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}'.
Outrageous Oryx