Print colorize text. It accepts arguments of print function.
(text, color=None, on_color=None, attrs=None, **kwargs)
| 121 | |
| 122 | |
| 123 | def cprint(text, color=None, on_color=None, attrs=None, **kwargs): |
| 124 | """Print colorize text. |
| 125 | |
| 126 | It accepts arguments of print function. |
| 127 | """ |
| 128 | |
| 129 | print((colored(text, color, on_color, attrs)), **kwargs) |
| 130 | |
| 131 | |
| 132 | if __name__ == '__main__': |
no test coverage detected
searching dependent graphs…