Python 隐藏控制台窗口

import ctypes
whnd = ctypes.windll.kernel32.GetConsoleWindow()
if whnd != 0:
    ctypes.windll.user32.ShowWindow(whnd, 0)
    ctypes.windll.kernel32.CloseHandle(whnd)

  

posted @ 2021-05-30 18:31  神迹丶  阅读(1006)  评论(0编辑  收藏  举报
网站已运行: