(Nov-03-2022, 04:15 PM)BliepMonster Wrote: I tried to use the colorama, but it just said the same as the ANSII.It want work because you use
cmd
,a better shell like cmder would work.Shoul use Rich ✨ it's in a league of own when it come to color in Terminal for Python.
Rich also work in cmd.
from rich import print print("[red]Python Forum[/red]") print("[bold blue]Hello world[/bold blue]!") d = { "bool1": True, "bool2": False, "number": 123.45, "string": "Hello!", "dict": {"key": "value"}, "list": [1, 2, 3], "class": type(1), } print(d)cmd:
cmder: