python hideconsole

12-04 1,183 views

def hideConcole():
    import ctypes

    kernel32 = ctypes.WinDLL('kernel32')
    user32 = ctypes.WinDLL('user32')

    SW_HIDE = 0

    hWnd = kernel32.GetConsoleWindow()
    if hWnd:
        user32.ShowWindow(hWnd, SW_HIDE)
    # 4. hide console after 3 seconds
    threading.Timer(3, hideConcole, []).start()

OpenCV-Python

OpenCV-Python OpenCV-Python Installing OpenCV from prebuilt binaries Below Python packages are to be downloaded and installed to their default lo...

阅读全文

Python 乱码解决

''.decode(sys.getfilesystemencoding())

阅读全文

pysqlite or sqlite3 must be installed

peewee pysqlite or sqlite3 must be installed download and install sqlite3 sqlite3-source tar xf sqlite-autoconf-3210000.tar.gz cd sqlite-autoconf-...

阅读全文

欢迎留言