Python - windows - 隐

发布时间:2019-08-05 16:32:52编辑:auto阅读(2090)

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

关键字