关于Pillow与PIL PIL(Python Imaging Library)是Python一个强大方便的图像处理库,名气也比较大。不过只支持到Python 2.7。 PIL官方网站:http://www.pythonware.com/products/pil/ Pillow是PIL的一个派生分支 ...
分类:
其他好文 时间:
2019-10-06 13:35:37
阅读次数:
147
因工作的关系,Eclipse开发的Java项目拷来拷去,有时候会报一个很奇怪的错误。明明源码一模一样,为什么项目复制到另一台机器上,就会报“java compiler level does not match the version of the installed java project fac ...
分类:
编程语言 时间:
2019-10-02 19:06:19
阅读次数:
88
简介 大部分项目中都必不可少的包含数据库实体(Entity)、数据载体(dto,dataObject),而这两部分都包含着大量的没有业务逻辑的setter、getter、空参构造,同时我们一般要复写类的toString(),equals(),hashCode()方法(贫血模型)。这些工作都是重复性的 ...
分类:
其他好文 时间:
2019-09-30 13:00:02
阅读次数:
74
function sys(){ // alert('扫一扫') //判断浏览器环境 var userAgent = navigator.userAgent; if (userAgent.indexOf("MicroMessenger") > -1){ // 获取配置信息 // alert('appi... ...
分类:
微信 时间:
2019-09-29 14:30:45
阅读次数:
154
源码基于go1.8rc3。首先看看mheap的数据结构// mheap本身只包含"free[]" and "large"数组// 但其他的全局数据也在这里// mheap 禁止从堆上创建,因包含的mSpanLists不能从堆上创建type mheap struct { lock mutex free... ...
分类:
其他好文 时间:
2019-09-29 12:32:00
阅读次数:
97
import re 一.匹配头部:a=r'123abc456def789ghi'pattern=re.compile('123abc')>>> print pattern.match(a).group()123abc>>> print pattern.search(a).group()123abc> ...
分类:
其他好文 时间:
2019-09-26 13:15:26
阅读次数:
205
网上的东西真坑人啊 在知乎里看到的最有意思的python项目,于是选了一个qrcode二维码的项目来自己尝试 github里下载到pycharm之后就开始了踩坑之路。 先说安装pillow 升级pip到19.2.3版本之后,安装pillow(pip install pillow) 之后尝试导入 im ...
分类:
其他好文 时间:
2019-09-26 00:10:22
阅读次数:
618
# -*-coding:utf-8-*- # !/usr/bin/env python # Author :vilicute ''' func:对某文件夹下的图片进行批量裁剪 ''' import os import time from PIL import Image start = time.t... ...
分类:
其他好文 时间:
2019-09-25 00:34:23
阅读次数:
86
from selenium import webdriver from selenium.webdriver import ChromeOptions from time import sleep from PIL import Image import requests class Get_aht... ...
分类:
其他好文 时间:
2019-09-24 17:55:22
阅读次数:
103
raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e) django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No modul ...
分类:
编程语言 时间:
2019-09-24 14:11:25
阅读次数:
78