parent
528e45a351
commit
8525de1c6c
@ -0,0 +1,10 @@
|
|||||||
|
# pip install screeninfo
|
||||||
|
from screeninfo import get_monitors
|
||||||
|
|
||||||
|
monitors = get_monitors()
|
||||||
|
print("显示器数量:", len(monitors))
|
||||||
|
|
||||||
|
# 显示器的分辨率和开始的位置
|
||||||
|
for i, monitor in enumerate(monitors):
|
||||||
|
print("显示器", i + 1, "分辨率:", monitor.width, "x", monitor.height)
|
||||||
|
print("显示器", i + 1, "位置:", monitor.x, ",", monitor.y)
|
Loading…
Reference in new issue