Colorit: 一个用来给终端输出上色的工具。 您所在的位置:网站首页 陶瓷colorit Colorit: 一个用来给终端输出上色的工具。

Colorit: 一个用来给终端输出上色的工具。

2024-06-22 03:16| 来源: 网络整理| 查看: 265

Colorit

Install

sudo python setup.py install

Usage

p = paint(foreground, background=None, attribute=None) p(string)

Examples

from colorit import paint green = paint('green') print(green('Hello World'))

Available foreground/background colors

black red green yellow blue magenta cyan white

Available attributes

blod underscore blink reverse concealed

License

The MIT License (MIT)

Copyright (c) 2013 zqqf16

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有