用于 Python 3.6+ 的语法突出显示更漂亮的打印机
项目描述
Prettier_Printer:用于 Python 3.6+ 的语法突出显示更漂亮的打印机
该库旨在尽可能简单直观地打印更漂亮的 Python 代码。
教程
漂亮打印常见的 Python 值:
>>> from prettier_printer import pprint
>>> d = {
... 'example_tuple': (1, 2, 3, 4),
... 'word': 'Python is an interpreted programming language.',
... 'example dict': {'set': set([1, 2, 3, 4])}
...}
>>> pprint(d, depth=10, indent=2, width=12, sort_dict_keys=True)
{
'example dict': {
'set': {1, 2, 3, 4}
},
'example_tuple': (1, 2, 3, 4),
'word': (
'Python is an ',
'interpreted ',
'programming ',
'language.'
)
}
漂亮地打印带有语法突出显示的常见 Python 值:
安装
$ pipenv install prettier_printer
仅支持Python 3.6。
项目详情
关
prettier_printer -0.1.4-py3-none-any.whl 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 061d607ebaba1bb6b93da3fde3dc74087b539095f381839cd1aba2f67b0203d0 |
|
MD5 | 30c37f49c90b743cde1c04607e57fc17 |
|
布莱克2-256 | d5c1496bab481d1099c810f6125dfb499dfadfef8a78cae3385ec04d8580e413 |