import ctypes
whnd = ctypes.windll.kernel32.GetConsoleWindow()
if whnd != 0:
ctypes.windll.user32.ShowWindow(whnd, 0)
ctypes.windll.kernel32.CloseHandle(whnd)
Python - windows - 隐藏Console窗口
最新推荐文章于 2024-05-01 23:05:14 发布