python获取屏幕大小

import tkinter
tk = tkinter.Tk()
width = tk.winfo_screenwidth()
height = tk.winfo_screenheight()
tk.quit()

 

posted @ 2021-08-10 22:35  CJTARRR  阅读(2849)  评论(0)    收藏  举报