From 8525de1c6c52d825aa002c2c1e2f32a632919640 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=B5=B7?= <10402852@qq.com> Date: Wed, 17 Jul 2024 13:03:12 +0800 Subject: [PATCH] 'commit' --- BaiHu/Test/TestGetView.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 BaiHu/Test/TestGetView.py diff --git a/BaiHu/Test/TestGetView.py b/BaiHu/Test/TestGetView.py new file mode 100644 index 00000000..c5254076 --- /dev/null +++ b/BaiHu/Test/TestGetView.py @@ -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)