Python3.4 控制台窗口隐藏

来源:互联网 发布:远程操控苹果电脑软件 编辑:程序博客网 时间:2024/05/17 07:46
import ctypeswhnd = 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/
0 0
原创粉丝点击