Skip to content

Instantly share code, notes, and snippets.

@p-geon
Created August 15, 2021 02:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save p-geon/9fa03ba54cdae0e2d484f1bb4f28f10d to your computer and use it in GitHub Desktop.
Save p-geon/9fa03ba54cdae0e2d484f1bb4f28f10d to your computer and use it in GitHub Desktop.
! pip install -q termcolor==1.1.0
from termcolor import colored
print(colored('hello', 'red'), colored('world', 'green'))
print(colored("hello red world", 'red'))
# ---
red = "\x1b[31m"
red_ = "\x1b[0m"
print(f"{red}red{red_}a")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment