Doing/Python

문자열 앞 0으로 채우기

YongArtist 2020. 7. 5. 20:20

zfill()

print("3".zfill(3))

Result

003