Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
谁能告诉我如何更改CLINT模块进度条的颜色?
CLINT
我尝试使用模块termcolor但失败了。
termcolor
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