📜  全屏 cmd 与 python 代码示例

📅  最后修改于: 2022-03-11 14:47:07.026000             🧑  作者: Mango

代码示例1
import ctypes

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

SW_MAXIMIZE = 3

hWnd = kernel32.GetConsoleWindow()
user32.ShowWindow(hWnd, SW_MAXIMIZE)