📜  python 获取屏幕大小树莓派 - Python 代码示例

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

代码示例1
from screeninfo import get_monitors
screen = get_monitors()[0]

# if that raises an error, try using this first
# from os import environ
# environ['DISPLAY'] = ':0.0'

print(screen)