设置Python打印格式

>>> def esc(code):
...     return f'33[{code}m'
...
>>> print(esc('31;1;4') + 'really' + esc(0) + ' important')
原文地址:https://www.cnblogs.com/c-x-a/p/11363749.html