Python:改变进度条的颜色(CLINT)

时间:2018-03-15 05:35:16

标签: python python-2.7 progress-bar python-2.x clint

嘿,有Stackoverflow的记者, 任何人都可以告诉我如何更改CLINT模块的进度条颜色 我尝试使用模块termcolor但失败了 提前致谢

1 个答案:

答案 0 :(得分: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

相关问题