随笔分类 - 爬虫
摘要:使用unicode对象的话,除了这样使用u标记,还可以使用unicode类以及字符串的encode和decode方法。 unicode类的构造函数接受一个字符串参数和一个编码参数,将字符串封装为一个unicode,比如在这里,由于我们用的是utf-8编码,所以unicode中的编码参数使用’utf-
阅读全文
摘要:# _*_ coding:utf-8 _*_from PIL import Imagefrom selenium import webdriverimport pytesseractimport timeurl = 'https://ec.ayyywl.com/login'driver = webd
阅读全文