2020年12月21日星期一

I can not properly output the color text in python

when use this code:

from termcolor2 import colored    print(colored('hello', 'red'), colored('world', 'green'))  

my output in terminal is :←[31mhello←[0m ←[32mworld←[0m

whats the problem?

https://stackoverflow.com/questions/65402720/i-can-not-properly-output-the-color-text-in-python December 22, 2020 at 11:01AM

没有评论:

发表评论