📅  最后修改于: 2022-03-11 14:45:39.782000             🧑  作者: Mango
# str.ljust(width[, fillchar])
>>> 'hi'.ljust(10)
'hi '
>>> 'hello'.ljust(10, '-')
'hello-----'
# custom formatting
>>> f'{"hi":<10}'
'hi '