python3学习手册色的字\033[0m") ★print输出带颜色的字windows 此种方法仅windows命令行下有效 import ctypes STD_INPUT_HANDLE = -10 STD_OUTPUT_HANDLE = -11 STD_ERROR_HANDLE = -12 FOREGROUND_BLACK = 0x0 FOREGROUND_BLUE = 0x01 # text color 0x80 # background color is intensified. std_out_handle = ctypes.windll.kernel32.GetStdHandle(STD_OUTPUT_HANDLE) ctypes.windll.kernel32.SetConsoleTextAttribute(std_out_ha ndle, FOREGROUND_RED windll.kernel32.SetConsoleTextAttribute(std_out_ha ndle, FOREGROUND_RED | FOREGROUND_INTENSITY) # red print("red") ctypes.windll.kernel32.SetConsoleTextAttribute(std_out_ha ndle, FOREGROUND_GREEN | FOREGROUND_INTENSITY)0 码力 | 213 页 | 3.53 MB | 1 年前3
The DevOps HandbookAmazon and Netflix e. MAKING FUNCTIONAL ORIENTATION WORK i. Requires everyone in the value stream views the customer and organizational outcomes as a shared goal, regardless of where they reside in the0 码力 | 8 页 | 22.57 KB | 5 月前3
共 2 条
- 1













