0

谁能告诉我如何更改CLINT模块进度条的颜色?

我尝试使用模块termcolor但失败了。

4

1 回答 1

0

CLINT有自己的颜色设置方法。

from clint.textui import colored
red_text = colored.red("Red Text")   # This is a 'red-string' object
print(red_text)     # This will be printed in red.

也许有了它,您可以更改打印为进度条的字符的颜色。

来源:https ://stackoverflow.com/a/16630004/7285313

于 2018-03-15T08:31:08.503 回答