import tkinter
screen = tkinter.Tk()
x = screen.winfo_screenwidth()
#获取当前屏幕的宽
y = screen.winfo_screenheight()
#获取当前屏幕的高
print(x,y)
del win
python获取当前屏幕的分辨率
最新推荐文章于 2023-10-07 21:21:03 发布
import tkinter
screen = tkinter.Tk()
x = screen.winfo_screenwidth()
#获取当前屏幕的宽
y = screen.winfo_screenheight()
#获取当前屏幕的高
print(x,y)
del win