资 源 简 介
color.py
Cross-platform color terminal text. Uses ANSI if not on Windows, otherwise uses magic Windowsfu.
Methods:
* color.set(color, bright=False, bgcolor=None)
* color.reset()
* color.print_c(color, ... , bright=False, bgcolor=None)
Constants:
* color.colors (a set of all colors)
color.white
color.red
color.green
color.blue
color.cyan
color.magenta
color.yellow
color.black
Examples:
from color import *
print_c(yellow, " |", end="", bright=True)
for i in range(19):
print_c(red, "|||", end="")
print_c(yellow, "|", end="", bright=True)
print()