>>> s = "hello"
>>> print(f"{s:10s}")#左对齐
hello
>>> print(f"{s:10s},world!")#左对齐
hello ,world!
>>> print(f"{s}")#直接输出,默认左对齐
hello
>>> print(f"{s.rjust(10,'*')}")#右对齐
*****hello
>>> print(f"{s:*>10}")#右对齐
*****hello
>>> print(f"{s: >10}")#右对齐
hello
>>>