当前位置:   article > 正文

Python - windows - 隐藏Console窗口_python hide console ctypes

python hide console ctypes
  1. import ctypes
  2. whnd = ctypes.windll.kernel32.GetConsoleWindow()
  3. if whnd != 0:
  4. ctypes.windll.user32.ShowWindow(whnd, 0)
  5. ctypes.windll.kernel32.CloseHandle(whnd)

本文内容由网友自发贡献,转载请注明出处:https://www.wpsshop.cn/w/IT小白/article/detail/74656
推荐阅读
相关标签
  

闽ICP备14008679号