可变的参数类型,也称为不定参数类型。英文缩写是varargus,还原一下就是variable argument type。通过它的名字可以很直接地看出来,这个方法在接收参数的时候,个数是不定的。 public class TestVarArgus { public static void dealA ...
分类:
编程语言 时间:
2019-07-16 18:03:15
阅读次数:
121
前言 用SpringBoot也有很长一段时间了,一直是底层使用者,没有研究过其到底是怎么运行的,借此机会今天试着将源码读一下,在此记录。。。我这里使用的SpringBoot 版本是 2.0.3.RELEASE 源码解析 SpringApplication 的初始化 1.首先一个完整的SpringBo ...
分类:
编程语言 时间:
2019-07-16 16:43:44
阅读次数:
148
n = norm(v) 返回向量 v 的欧几里德范数。此范数也称为 2-范数、向量模或欧几里德长度。 例1: K>> norm([3 4]) ans = 5 ...
分类:
其他好文 时间:
2019-07-16 10:55:53
阅读次数:
121
小小print,大大content print是Python的内置方法之一,也是我们最常用的打印、调试的方式。我们来看看builtins.py中print的源码: *args: 这个参数决定了print能同时打印多个值。 sep: 这个参数决定了当print打印多个值时,值中间的连接字符。他的默认值 ...
分类:
其他好文 时间:
2019-07-13 13:29:40
阅读次数:
94
``` Redis configuration file example. Note that in order to read the configuration file, Redis must be started with the file path as first argument: r ...
分类:
其他好文 时间:
2019-07-11 09:23:01
阅读次数:
453
最近在使用mock进行单元测试的时候,遇到了下面的问题: org.mockito.exceptions.misusing.InvalidUseOfMatchersException: Invalid use of argument matchers!1 matchers expected, 2 re ...
分类:
其他好文 时间:
2019-07-08 22:14:03
阅读次数:
351
第一种:使用字符串切片 第二种:使用列表的reverse方法 手写 reverse 第三种:使用reduce reduce 函数帮助: 第四种:使用递归函数 python中默认的最大递归数: 第五种:使用栈 第六种:for循环 ...
分类:
编程语言 时间:
2019-07-08 00:14:17
阅读次数:
211
1.依赖 2.配置信息 3.配置信息:此处为多个Vhost配置,单个可直接使用,无需另外配置,只需声明队列信息即可 4.发送队列 5.监听队列 ...
分类:
其他好文 时间:
2019-07-06 17:45:48
阅读次数:
172
1/所存在的问题描述, 在工程main.c编译时,keilMDK报出警告具体如下, warning: #167-D: argument of type "void (*)(void)" is incompatible with parameter of type "void (*)(void *)" ...
分类:
其他好文 时间:
2019-07-06 09:23:13
阅读次数:
154
启动项目出现Argument(s) "type" can't be null.异常。异常如下: 搜了好久,最后在一篇来外的文章上(http://www.intropro.com/resources/blog/66-argument-s-type-can-t-be-null) 找到解决方法:删除WEB ...
分类:
Web程序 时间:
2019-07-05 19:25:23
阅读次数:
189