def __init__(self, write_color):
from ctypes import c_ulong, windll
STD_OUTPUT_HANDLE_ID = c_ulong(0xfffffff5)
windll.Kernel32.GetStdHandle.restype = c_ulong
self.std_output_hdl = windll.Kernel32.GetStdHandle(STD_OUTPUT_HANDLE_ID)
self.SetConsoleTextAttribute=windll.Kernel32.SetConsoleTextAttribute
self.write_color=write_color
评论列表
文章目录