我正在尝试使用colorama打印彩色文本,但是当我编译一个exe并运行以下代码时...
from colorama import Fore, Back, Style
print(Fore.RED + 'text')
print(Back.GREEN + 'and with a green background')
print(Style.DIM + 'and in dim text')
print(Style.RESET_ALL)
print('back to normal now')
I get output of::
输出:
[31mtext
[0m
back to normal now
在使用pyinstaller创建exe文件时,是否可以打印彩色文本?或者说这根本不可能?
colorama
版本是哪个? - tripleee