Text Formating in Python

Joonas Paalasmaa joonas at olen.to
Sun Aug 26 16:59:24 EDT 2001


Lee Hulbert wrote:
> 
> Is there a simple way to format a text string before printing to the
> screen?
> 
> Specifically, I have a list of 80 numbers, and I want to print the
> list, with each number a different color if it is positive, negative,
> or 0.

curses module can do the job.
http://www.python.org/doc/current/lib/module-curses.html



More information about the Python-list mailing list