/
githubmirror
/
rich
Обзор
Документация
Войти
/
githubmirror
/
rich
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
examples/justify2.py
15 строк
426 B
Will McGugan
added example
10 июл 2020, 18:52
10 июл 2020, 18:52
0b3d734
Код
Авторство
О чём код?
""" This example demonstrates the justify argument to print. """ from rich.console import Console from rich.panel import Panel console = Console(width=20) style = "bold white on blue" panel = Panel("Rich", style="on red", expand=False) console.print(panel, style=style) console.print(panel, style=style, justify="left") console.print(panel, style=style, justify="center") console.print(panel, style=style, justify="right")