- 博客(2)
- 收藏
- 关注
原创 Python中pip install pil报错
存在问题 Python中pip install pil 报错: ERROR: Could not find a version that satisfies the requirement pil ERROR: No matching distribution found for pil 出现问题原因及解决方法 原因:Python3.7把PIL改名成pillow了,我的Python版本刚好是3.7! 解决方法:改成 pip install pillow (因为我已经装好了才截的图,所以提示我已经有装p
2021-04-16 22:28:37
249
原创 PIL下Image的crop抠图不准确问题
存在的问题 在学习python + Selenium自动化测试时,使用pillow对登录界面的验证码进行截图,出现抠出来的图不准确的问题。 代码如下: from selenium import webdriver from PIL import Image import selenium import time def test_pyautogui(): # 加载谷歌浏览器 driver = webdriver.Chrome() driver.get('http://localh
2021-04-16 22:18:14
604
2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人