09 2020 档案
摘要:pip install selenium //安装 下载geckodriver.exe 放到Python目录,在系统变量添加目录 报错:permission denied(权限不足) pip install --upgrade selenium :由于版本不匹配导致,更新selenium版本 访问页
阅读全文
摘要:安装: pip install requests pip install beautifulsoup4 pip3 install lxml 无需引用 pip3 install easygui pip3 install selenium 引用: import requests 网页请求 from bs
阅读全文
摘要:安装python3 解析器: pip3 install lxml 显式指定解析器: bf = BeautifulSoup(res.text,"lxml")
阅读全文
摘要:设置requests返回值编码: 获取返回值编码:res.encoding :ISO-8859-1 获取文本内容编码:res.apparent_encoding :utf-8 新的字符串str1用于接收编码后的字符串: str1 = res.text.encode(res.encoding).dec
阅读全文
摘要:x = Math.floor(x);//去尾法 x = Math.round(x);//四舍五入法 x = Math.ceil(x);//进一法
阅读全文