Line 214:
= Justify Text =
[https://pyformat.info/ pyformat.info]▼
text.rjust(3,' ')
text.ljust(3,' ')
text.center(3,' ')
= Formatting =
▲ [https://pyformat.info/ pyformat.info]
print('%s %s' % ('one','two'))
print('{} {}'.format('one','two'))
|