python自动化测试——识别简单的数字验证码 from PIL import Image from pytesseract import image_to_string code = image_to_string(Image.open("code.png")) print(code)