#coding=utf-8
from b2.console2 import ColorText
t = ColorText()
print t.ForeRed + t.BackGreen + 'fore red back green'
print t + "this is test"
print t + t.BackYellow
print t + "fore red and back yellow"
工程地址 : github.com/intohole/b2
这个我在 ubuntu 下验证可以;如果有其它的想要做的话,可以提出需求,如果可以 follow 下我,谢谢了