转自:https://blog.csdn.net/mm1030533738/article/details/78447714 项目链接: https://www.shiyanlou.com/courses/370/labs/1191/document from PIL import Image #从 ...
分类:
编程语言 时间:
2018-05-27 16:24:44
阅读次数:
250
使用IDEA开发项目 1.Hibernate是一个开发源代码的对象关系映射框架(ORM); 2.对JDBC进行了轻量级的封装,可以将实体类和数据库中的表产生映射关系; 3.是一个全自动的ORM框架;hibernate能自动生成sql语句; 4.程序猿可以完全按照面向对象的编程思想来操作数据库. 本次 ...
分类:
Web程序 时间:
2018-05-26 11:43:44
阅读次数:
232
# -*- coding: utf-8 -*- import scrapy import re import json import time class WphSpiderSpider(scrapy.Spider): name = 'wph_spider' allowed_domains = [' ...
分类:
其他好文 时间:
2018-05-25 19:38:30
阅读次数:
1879
问题: 在IDEA中,无法识别同一个 package 里的其他类,将其显示为红色,但是 compile 没有问题 解决方法如下: 点击菜单中的 “File” -> “Invalidate Caches / Restart”, 然后点击对话框中的 “Invalidate and Restart”,清空 ...
分类:
其他好文 时间:
2018-05-24 18:22:44
阅读次数:
1504
import re if __name__ == "__main__": url = " \n deded这是第一个链接这是第二个链接 \n " # 去除\n one = url.replace("\n", "") # 去掉两端空格 two = one.strip() # 正则匹配 re.match... ...
分类:
编程语言 时间:
2018-05-23 22:03:49
阅读次数:
169
官网: http://www.varnish-cache.org/releases/index.html 软件包官方下载地址: https://packagecloud.io/varnishcache/varnish41?page=1 https://packagecloud.io/varnishc ...
分类:
其他好文 时间:
2018-05-23 18:56:50
阅读次数:
393
ubuntu下安装pandas出现 compile failed with error code 1 in /tmp/pip_build_hadoop/pandas ...
分类:
系统相关 时间:
2018-05-23 18:08:06
阅读次数:
253
1.maven的集合 1.假设我们已经拥有了项目Age,项目Bge,项目Cge,项目Summary 2.我们在项目Summary的pom.xml中引入集合标签(以项目Summary汇总) <modules> <module>../引入的项artifactId</module> <module>../ ...
分类:
其他好文 时间:
2018-05-23 14:17:34
阅读次数:
141
pip install wordcloud 没有报错,如果有错误可以从http://www.lfd.uci.edu/~gohlke/pythonlibs/#wordcloud下载whl文件直接安装。 用法比较简单,注释很详细。有个坑人的地方在于font_path设置,尝试了一下几种形式均报错IO e ...
分类:
其他好文 时间:
2018-05-23 02:19:43
阅读次数:
362
Image主要是打开图片后,对图片进行编辑,主要有以下一些常用功能: 1、读取并显示图片: 2、显示图片大小: 3、把图片旋转40度并显示: 4、显示图片名称(包含路径): 5、图片缩小一倍(大概是这么算法): 6、图片的像素点的缩放: 7、图片合成或融合: 8、创建并保存图片: 9、将图片黑化(灰 ...
分类:
编程语言 时间:
2018-05-23 00:10:48
阅读次数:
274