设置Python打印格式

>>> def esc(code):
...     return f'\033[{code}m'
...
>>> print(esc('31;1;4') + 'really' + esc(0) + ' important')
posted @ 2019-08-16 14:34  公众号python学习开发  阅读(733)  评论(0编辑  收藏  举报