As discussed in the comments, change your code to use these features;
import os, colorama
from colorama import Fore,Style,Back
colorama.init()
print(Fore.RED + 'some red text')
print(Back.GREEN + 'and with a green background')
print(Style.BRIGHT + 'and in bright text')
print(Style.RESET_ALL)
print('back to normal now')
These are much easier to use and do job. The available colours you can use for Fore
or Back
are;
- Red
- Cyan
- Green
- Yellow
- Black
- Magenta
- Blue
- White
These will all be needed to be put in capitals.
And for Style
you can use;
These will also need to be in capitals.
Have fun using colorama :)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…