ljust(n, c='')
rjust(n, c='')
예시
a = 'abc' print(a.ljust(10)) print(a.ljust(10, '-')) b = 'def' print(b.rjust(10)) print(b.rjust(10, '-'))
출력
abc abc------- def -------def