📜  python print in color - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:15.552000             🧑  作者: Mango

代码示例6
# Python program to print 
# green text with red background 

#pip install termcolor
#pip install colorama
  
from colorama import init 
from termcolor import colored 
  
init() 
  
print(colored('Hello, World!', 'green', 'on_red'))