Skip to content

Instantly share code, notes, and snippets.

@huwan
Last active August 15, 2020 06:45
Show Gist options
  • Save huwan/4305453d9325ed801a01f1b7429a6381 to your computer and use it in GitHub Desktop.
Save huwan/4305453d9325ed801a01f1b7429a6381 to your computer and use it in GitHub Desktop.
# from colorprint import succ, fail, info
from termcolor import colored, cprint
DEBUG = True
def succ(string):
if DEBUG:
cprint(string, 'green')
else:
print(string)
def fail(string):
if DEBUG:
cprint(string, 'red')
else:
print(string)
def info(string):
if DEBUG:
cprint(string, 'yellow')
else:
print(string)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment