Converted a number to a formatted string with leading zeros by using string formatting: n = 42 print(f'{n:05d}') print('%05d' % n) ...
確定! 回上一頁