📜  屏幕大小 tkinter - Python 代码示例

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

代码示例1
import tkinter as tk

root = tk.Tk()

screen_width = root.winfo_screenwidth()
screen_height = root.winfo_screenheight()