Print colorize text. It accepts arguments of print function.
(text, color=None, on_color=None, attrs=None, **kwargs)
| 116 | |
| 117 | |
| 118 | def cprint(text, color=None, on_color=None, attrs=None, **kwargs): |
| 119 | """Print colorize text. |
| 120 | |
| 121 | It accepts arguments of print function. |
| 122 | """ |
| 123 | |
| 124 | print((colored(text, color, on_color, attrs)), **kwargs) |
| 125 | |
| 126 | |
| 127 | if __name__ == '__main__': |