Created
August 15, 2021 02:52
-
-
Save p-geon/9fa03ba54cdae0e2d484f1bb4f28f10d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
! 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