//install termcolor module
cd \
cd python27
cd scripts
pip install termcolor
pip install colorama


//python scripts for testing
from termcolor import colored
print(colored("Hello world in red style!", 'red'))


>>> from termcolor import *
>>> import colorama
>>> colorama.init()
>>> cprint('hello', 'red')

 

相关文章:

  • 2021-05-13
  • 2021-07-28
  • 2021-08-02
  • 2021-09-02
  • 2021-08-25
  • 2021-07-31
  • 2022-12-23
猜你喜欢
  • 2021-11-25
  • 2021-09-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
  • 2022-12-23
相关资源
相似解决方案