python获取屏幕大小

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

 

posted on 2021-08-10 22:35  CJTARRR  阅读(2795)  评论(0编辑  收藏  举报