Format integer as string with leading zeros in Python? ? 1. 2. 3. x = 4. x = str (x).zfill( 5 ). print (x). Output. 00004.
確定! 回上一頁