为人类打印可序列化对象
pyrepr的Python项目详细描述
Pyrepr
为人类打印可序列化的对象。这是基于Markdownify和TOML。
用法
frompyreprimportReprprint(Repr(obj))
示例输出:
[[mid]]
1358629116480
[[mod]]
1481117769
[[usn]]
3491
[[tags]]
CostanzoEndocrine EndocrinePhysiology
[[flds]]
Peptide and Protein Hormone Synthesis:
Translation of a **preprohormone ***begins* in the **{{c1::cytoplasm}} **with a **signal** **peptide** at the N terminusx1f![](paste-417251777839638.jpg)
[[sfld]]
Peptide and Protein Hormone Synthesis: Translation of a preprohormone begins in the {{c1::cytoplasm}} with a signal peptide at the N terminus
[[csum]]
1963658058
[[flags]]
0
您还可以将输出设为纯降价
print(Repr(obj).to_str('markdown'))
## mid 1358629116480 ## mod 1481117769 ## usn 3491 ## tags CostanzoEndocrine EndocrinePhysiology ## flds Peptide and Protein Hormone Synthesis: Translation of a **preprohormone ***begins* in the **{{c1::cytoplasm}} **with a **signal** **peptide** at the N terminusx1f![](paste-417251777839638.jpg) ## sfld Peptide and Protein Hormone Synthesis: Translation of a preprohormone begins in the {{c1::cytoplasm}} with a signal peptide at the N terminus ## csum 1963658058 ## flags 0
安装
pip install pyrepr