#coding: utf-8
'''
    Time: 2015.10.4
    Author: Lionel
    Content: print with color
'''
from termcolor import colored, cprint


print_red_on_cyan = lambda x: cprint(x, 'red', 'on_cyan', end='')

print_grey = lambda x:cprint(x, 'grey', end='')
print_red = lambda x:cprint(x, 'red', end='')
print_green = lambda x:cprint(x, 'green', end='')
print_yellow = lambda x:cprint(x, 'yellow', end='')
print_blue = lambda x:cprint(x, 'blue', end='')
print_magenta = lambda x:cprint(x, 'magenta', end='')
print_cyan = lambda x:cprint(x, 'cyan', end='')
print_white = lambda x:cprint(x, 'white', end='')
@@ -89,48 +89,993 @@
 '''%0A
-from termcolor import colored, cprint%0A%0A%0A
+'''%0A2017-08-01 ienlaw%0A%E6%B7%BB%E5%8A%A0windwos%E9%A2%9C%E8%89%B2%E6%94%AF%E6%8C%81%0A'''%0A%0A%0Aimport os%0Afrom termcolor import colored, cprint%0Afrom windows_color import *%0A%0Aif os.name in 'nt' :%0A    print_red_on_cyan = lambda i:printDarkRed(str(i)) if type(i) == type(int()) else printDarkRed(i)%0A    print_grey = lambda i:printDarkGray(str(i)) if type(i) == type(int()) else printDarkGray(i)%0A    print_red = lambda i:printRed(str(i)) if type(i) == type(int()) else printRed(i)%0A    print_green = lambda i:printGreen(str(i)) if type(i) == type(int()) else printGreen(i)%0A    print_yellow = lambda i:printYellow(str(i)) if type(i) == type(int()) else printYellow(i)%0A    print_blue = lambda i:printBlue(i) if type(i) == type(unicode()) else printBlue(str(i))%0A    print_magenta = lambda i:printPink(str(i)) if type(i) == type(int()) else printPink(i)%0A    print_cyan = lambda i:printSkyBlue(str(i)) if type(i) == type(int()) else printSkyBlue(i)%0A    print_white = lambda i:printWhite(str(i)) if type(i) == type(int()) else printWhite(i)%0Aelse:%0A    
 prin
@@ -1136,17 +1136,20 @@
 end='')%0A
-%0A
+    
 print_gr
@@ -1184,24 +1184,28 @@
 y', end='')%0A
+    
 print_red = 
@@ -1234,24 +1234,28 @@
 d', end='')%0A
+    
 print_green 
@@ -1288,24 +1288,28 @@
 n', end='')%0A
+    
 print_yellow
@@ -1344,24 +1344,28 @@
 w', end='')%0A
+    
 print_blue =
@@ -1396,24 +1396,28 @@
 e', end='')%0A
+    
 print_magent
@@ -1454,24 +1454,28 @@
 a', end='')%0A
+    
 print_cyan =
@@ -1510,16 +1510,20 @@
 end='')%0A
+    
 print_wh
@@ -1555,16 +1555,17 @@
 'white', end='')
+%0A

Update my_color_print.py