擅长:python、mysql、java
<p>您也可以尝试此新库<strong>Printy</strong>
刚刚发布了版本1.2.0作为跨平台库</p>
<p>请查看:
<a href="https://github.com/edraobdu/printy" rel="nofollow noreferrer">Printy on github</a></p>
<p>它是基于旗帜的,所以你可以做像这样的事情</p>
<pre class="lang-py prettyprint-override"><code>from printy import printy
# with global flags, this will apply a bold (B) red (r) color and an underline (U) to the whole text
printy("Hello world", "rBU")
# with inline formats, this will apply a dim(D)
#blue (b) to the word 'Hello' and a striked (S)
#yellow (y) to the word 'world', the rest will remain as the predefined format
printy("this is a [bD]Hello@ [yS]world@ text")
</code></pre>
<p><a href="https://i.stack.imgur.com/1YRLS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1YRLS.png" alt="enter image description here"/></a></p>