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.
如何将 python termcolor 与 HEX 一起使用?我想做这样的事情:
print(colored('hello', HEX="#eb3434"))
在终端
然后看看colorama如果外部模块是选项。它适用于许多操作系统,它支持命名颜色,但我不知道它是否支持 CSS 十六进制代码。