作者回复: 嗯 也可以
作者回复: 需要付费购买的
作者回复: 这个不需要
作者回复: 看后面视频 我讲了
作者回复: 可能是分辨率的问题,我后面有讲,你看一下util.py源码: left = ce.location['x'] top = ce.location['y'] right = ce.size['width'] + left height = ce.size['height'] + top dpr = driver.execute_script('return window.devicePixelRatio') print(dpr) im = Image.open(picture_name1) img = im.crop((left*dpr, top*dpr, right*dpr, height*dpr))
作者回复: 保证main.py在包的最外层,看看你的项目是这样的吗?
作者回复: 是的
作者回复: 是的 用js window.devicePixelRadio获得
作者回复: 看看代码怎么写的 切图后其实第一张图片也就没用了