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

2024-04-18 20:30:37 发布

您现在位置:Python中文网/ 问答频道 /正文

嘿,这里有Stackoverflow memebers, 有谁能告诉我如何更改CLINT模块的进度条的颜色 我尝试使用模块termcolor,但失败了 提前谢谢


Tags: 模块进度条颜色stackoverflowtermcolorclintmemebers
1条回答
网友
1楼 · 发布于 2024-04-18 20:30:37

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

相关问题 更多 >