用ImageGrab.grabclipboard()获取的图片时出现错误AttributeError: 'NoneType' object has no attribute 'save'解决方案

 

 用ImageGrab.grabclipboard()获取的图片时出现错误AttributeError: 'NoneType' object has no attribute 'save';获取不到图片

解决:在img= ImageGrab.grabclipboard()前面加 time.sleep(3)延迟一下,就可以解决

posted @ 2022-02-16 17:24  地豆苗  阅读(1021)  评论(0)    收藏  举报