参考:https://testerhome.com/topics/5004 命令行中执行: python -matx screencap -o screen.png 性能对比脚本要快很多: d.screenshot('screen.png')