【发布时间】:2021-05-23 13:50:33
【问题描述】:
如何在 HEX 中使用 python termcolor?我想做这样的事情:
print(colored('hello', HEX="#eb3434"))
【问题讨论】:
-
你想在终端(如
termcolor标签建议)x或GUI中为文本着色(如tkinter标签建议)? -
在终端中。抱歉 tkinter 出错了 (:
-
那么,有什么想法吗? (:
-
@Klovik8 对于大多数终端,您可以使用these 转义码来做任何您需要的事情。这包括着色文本,移动光标,...
标签: python python-3.x termcolor