12 lines
230 B
Python
12 lines
230 B
Python
|
from termcolor import colored
|
||
|
|
||
|
|
||
|
class Console:
|
||
|
|
||
|
@staticmethod
|
||
|
def write_line(string: str, color: str = None):
|
||
|
if color is not None:
|
||
|
print(colored(string, color))
|
||
|
else:
|
||
|
print(string)
|