mou*_*uad 69
import tkinter as tk
root = tk.Tk()
screen_width = root.winfo_screenwidth()
screen_height = root.winfo_screenheight()
小智 6
一个可能的解决方案
import os
os.system("xrandr  | grep \* | cut -d' ' -f4")
我的输出:
1440x900
0