Python3.4 控制台窗口隐藏

时间:2015-02-23 09:40:57   收藏:0   阅读:1323
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/

原文:http://blog.csdn.net/u013511642/article/details/43908999

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!