推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
cool1205
V2EX  ›  Python

Windows 截图高难度问题,请慎入

  •  
  •   cool1205 · Dec 31, 2020 · 2216 views
    This topic created in 2026 days ago, the information mentioned may be changed or developed.
    windows 截图可以使用 windows 自带的,也可以使用 QQ 等辅助工具截图,效果还是可以的。我想请教各位大神一个问题,python 通过调用 windows 提供的 API 截图是拿的哪里的数据,这可能与 windows 刷新屏幕有关系了,windows 是直接从屏幕直接截取,还是从内存中直接获取。这么说有些抽象,举个例子,比如屏幕刷新率是 1HZ (例子而已),那就是一秒屏幕更新一下,此时有个程序每隔 0.1 秒向控制台输出当前毫秒时间戳,那此时使用截图工具,截到图片的时间戳会不会一秒内截图的十张图片一样,还是十张不一样。我尝试使用软件去验证,但不存在可操作性,希望有大哥指教一二
    4 replies    2020-12-31 16:58:10 +08:00
    codehz
        1
    codehz  
       Dec 31, 2020 via Android
    Windows 的截图方法不下数十种。。。
    你这种问法很难回答
    我猜你想要通过塞无效数据的方法阻止别人截图(
    nuk
        2
    nuk  
       Dec 31, 2020
    大哥屏幕刷新 1hz,那渲染也只有 1hz 啊,程序输出再快不渲染出来怎么截新的图。。。
    GeruzoniAnsasu
        3
    GeruzoniAnsasu  
       Dec 31, 2020
    0.1 秒 都 100ms 了,没有哪种方式截图误差会有这么大的,这种频率量级不用理
    iminto
        4
    iminto  
       Dec 31, 2020
    @nuk 2L 正解,楼主的问题是伪命题。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1468 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 407ms · UTC 16:29 · PVG 00:29 · LAX 09:29 · JFK 12:29
    ♥ Do have faith in what you're doing.