问题描述
where
执行这段代码后,在kali linux上,它截取了屏幕的一部分,因为使用了一段时间,它创建了其他文件为“photo_000.png”;我有时会遇到这个错误,但并非总是如此;
from pyautogui import screenshot
from PIL import Image,ImageFile
ImageFile.LOAD_TruncATED_IMAGES = True
screenshot("photo.png",region=(xx,yy,zz))
im = Image.open('photo.png')
我的代码有什么问题。 请注意,scrot 已经安装。 非常感谢
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)