无法使用AndroidViewClien将图像写入文件

2024-09-29 02:21:37 发布

您现在位置:Python中文网/ 问答频道 /正文

在vc.writeImageToFile(“C:\图像.png“)代码给出以下错误:

文件“C:\AndroidViewClientMaster\AndroidViewClient\src\com\dtmilano\android\视图客户端.py“,第2309行,以writeImageToFile形式 self.device.takeSnapshot().writeToFile(文件名,格式)

文件“C:\Python27\lib\site packages\PIL\图像.py“,第512行,ingetattr 引发AttributeError(名称)

AttributeError:写入文件

怎么了?在


Tags: 文件代码py图像srccompng错误