自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(14)
  • 资源 (2)
  • 收藏
  • 关注

翻译 plt annotate 绘制箭头

ax,plt.subplot(111)t = np.arange(0.0, 5.0, 0.01)s = np.cos(2*np.pi*t)line, = plt.plot(t, s, lw=2)plt.annotate('local max', xy=(2, 1), xytext=(3, 1.5), arrowprops=dict(facecolor='black', shrink...

2019-06-15 13:28:42 3668

原创 matplotlib plot 折线图参数

matplotlibimport numpy as np# evenly sampled time at 200ms intervalst = np.arange(0., 5., 0.2)# red dashes, blue squares and green trianglesplt.plot(t, t, 'r--', t, t**2, 'bs', t, t**3, 'g^')plt...

2019-06-15 12:56:20 1137

原创 Python pyplot style

在matplotlib 中 提供了很多样式来美化绘图。在plt.style.available中import numpy as npimport matplotlib.pyplot as pltimport matplotlib as mplprint(plt.style.available)plt.style.use('grayscale')[out]:['bmh', 'clas...

2019-06-14 12:27:03 1422

原创 Spring Bean配置详

Bean是Spring中非常重要的部分,<Bean>factory-bean : 属性来指定实例化Bean的Beanfactory-method : 属性来指定实例化Bean的方法.例如<!--定义实例工厂Bean --> <bean id="beanInstanceFactory" class="cn.javass.spring.cha...

2019-06-11 19:11:06 141

原创 Servlet配置的几种方法

Servlet配置手册Servlet是在服务器上运行的小程序,一个Servlet就是一个Java类,并且可以通过“请求-响应”的编程模型来访问这个驻留在服务器内存中的Servlet程序web.xml配置基础配置模板<?xml version="1.0" encoding="UTF-8"?><web-app xmlns="http://java.sun....

2019-06-11 00:42:13 911

原创 Spring Boot jdbc

Spring Boot jdbc添加依赖<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.6.RELEASE&lt...

2019-06-10 20:36:58 120

原创 jdbcDaoSuppor 实现增删改查

jdbcDaoSuppor

2019-06-09 23:40:45 92

原创 缓存管理器 Ehcache

EhCache缓存是实际工作中非常常用的一种提高性能的方法, 我们会在许多场景下来使用缓存。pom添加<dependency> <groupId>org.apache.shiro</groupId> <artifactId>shiro-ehcache</artifactId> <version>1...

2019-06-09 21:33:47 444

原创 Python调用浏览器实现课程表的获取

代码如下:import matplotlib.pyplot as plt # plt 用于显示图片import matplotlib.image as mpimg # mpimg 用于读取图片def showimg(path): lena = mpimg.imread(path) # 读取和代码处于同一目录下的 lena.png plt.imshow(lena) # 显示图片...

2019-06-09 15:44:32 408

原创 DataSource 详解

JdbcTemplateimport org.springframework.jdbc.core.JdbcTemplate;Spring为各种支持的持久化技术,都提供了简单操作的模板使用连接池初始化。连接池DataSourceJdbcTemplate使用连接池初始化package javax.sql;例:package com.github.zhangkaitao.shiro.ch...

2019-06-09 15:01:01 6899

原创 shiro .ini文件配置

[main]#默认是/login.jspauthc.loginUrl=/loginorg.apache.shiro.web.filter.authc.BasicHttpAuthenticationFilterShiro 内置了登录(身份验证)的实现:基于表单的和基于 Basic 的验证,其通过拦截器实现。[main]authcBasic.applicationName=please l...

2019-06-08 14:33:19 432

转载 shiro-web.xml基础配置

<?xml version="1.0" encoding="UTF-8"?><web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="htt...

2019-06-08 02:05:19 164

原创 WebListener

WebListener用来监听特定对象的创建或销毁、属性的变化ServletContextListenerServletContextListener 接口用于监听 ServletContext 对象的创建和销毁事件。当 ServletContext 对象被创建时,激发contextInitialized (ServletContextEvent sce)方法。当 ServletCon...

2019-06-07 17:43:23 126

原创 Intellij IDEA 找不到tomcat服务器

Intellij IDEA 找不到tomcat服务器在Settings中勾选:这样就可以找到开启了:

2019-06-06 18:44:23 1683

征服PYTHON-语言基础与典型应用.pdf

征服PYTHON-语言基础与典型应用,一本关于Python的书籍

2019-06-11

Python深度学习.pdf

Python入门的一本深度学习书籍, 有一定的参考价值。

2019-06-11

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除