摘要: 安装 我们使用的是Image中的crop(box)功能,它需要一个参数box,元组 类型,元组包括4个元素,(距离图片左边界距离x, 距离图片上边界距离y,距离图片左边界距离+裁剪框宽度x+w,距离图片上边界距离+裁剪框高度y+h) (x, y, x+w, y+h), x,y是裁剪框左上角的坐标, 阅读全文
posted @ 2019-02-09 23:56 anobscureretreat 阅读(310) 评论(0) 推荐(0)
摘要: http://phantomjs.org/download.html 阅读全文
posted @ 2019-02-09 18:16 anobscureretreat 阅读(110) 评论(0) 推荐(0)
摘要: 系统环境: 64位win10系统,同时安装python2.7与python3.6两个版本 安装: PIL是Python平台事实上的图像处理标准库,支持多种格式,并提供强大的图形与图像处理功能。目前PIL的官方最新版本为1.1.7,支持的版本为python 2.5, 2.6, 2.7,并不支持pyth 阅读全文
posted @ 2019-02-09 18:15 anobscureretreat 阅读(4688) 评论(0) 推荐(0)
摘要: from selenium import webdriveroptions = webdriver.ChromeOptions()options.add_experimental_option("excludeSwitches",["ignore-certificate-errors"])drive 阅读全文
posted @ 2019-02-09 18:13 anobscureretreat 阅读(868) 评论(0) 推荐(0)
摘要: 解压后,把路径放到系统环境变量中即可 阅读全文
posted @ 2019-02-09 18:12 anobscureretreat 阅读(163) 评论(0) 推荐(0)
摘要: demo1 输出 阅读全文
posted @ 2019-02-09 17:08 anobscureretreat 阅读(259) 评论(0) 推荐(0)
摘要: demo1 输出 demo2 输出 demo3 输出 阅读全文
posted @ 2019-02-09 16:04 anobscureretreat 阅读(303) 评论(0) 推荐(0)
摘要: demo1 输出 demo2 输出 demo3 输出 阅读全文
posted @ 2019-02-09 15:49 anobscureretreat 阅读(162) 评论(0) 推荐(0)
摘要: 输出 阅读全文
posted @ 2019-02-09 15:28 anobscureretreat 阅读(452) 评论(0) 推荐(0)
摘要: 输出 阅读全文
posted @ 2019-02-09 15:14 anobscureretreat 阅读(197) 评论(0) 推荐(0)
摘要: 执行 阅读全文
posted @ 2019-02-09 15:08 anobscureretreat 阅读(840) 评论(0) 推荐(0)
摘要: 输出 阅读全文
posted @ 2019-02-09 14:56 anobscureretreat 阅读(307) 评论(0) 推荐(0)