Last active
August 15, 2020 06:45
-
-
Save huwan/4305453d9325ed801a01f1b7429a6381 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
# 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