import ctypes whnd = ctypes.windll.kernel32.GetConsoleWindow() if whnd != 0: ctypes.windll.user32.ShowWindow(whnd, 0) ctypes.windll.kernel32.CloseHandle(whnd)
引用自http://magicpanda.net/2010/10/python%E4%B8%AD%E9%9A%90%E8%97%8Fconsole%E7%AA%97%E5%8F%A3/
时间: 2024-10-26 04:09:19