Ich habe Colorama für Python installiert. Ich habe das Modul importiert wie folgt:Colorama für Python, Keine farbigen Druckzeilen unter Windows
import colorama
from colorama import init
init()
from colorama import Fore, Back, Style
print Fore.RED + "My Text is Red"
und es gibt die ANSI Charaters ....
esc[31mMy Text is Red
Das isn `t, was ich erwartet hatte. Mache ich etwas falsch.
Danke.
Auf welchem Betriebssystem laufen Sie? –
Ich bin Windows 7 64 Bit .... – Mike
Laufen Sie dies auf der Eingabeaufforderung, oder in einer IDE? Es sollte in Eingabeaufforderung funktionieren, aber nicht in IDLE oder Eclipse Pydev zum Beispiel. – Junuxx