自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(90)
  • 收藏
  • 关注

原创 组网(一)

vlanifvlan batch 10 20int vlanif 10[xxx] ip address xxx.xxx.xxx.xxx 255.255.255.0// 配置完vlan interface后,和普通交换机一样,可以给接口配置放行的vlandis this // 接口上可执行此命令undo info-center enable // 失能信息中心[Huawei-Gig...

2020-03-15 19:57:21 183

原创 正则(一)

s = "86-(10)12345678";s = s.replaceAll("[\\+\\-\\(\\) ]",""); // 注意+-()都需要转义

2019-12-23 17:11:19 123

原创 linux(一)

1.“/bin”、“/sbin”、“/usr/bin”、“/usr/sbin”、“/usr/local/bin”等路径已经在系统环境变量中了,如果可执行文件在这几个标准位置,在终端命令行输入该软件可执行文件的文件名和参数(如果需要参数),回车即可。 如果不在标准位置,文件名前面需要加上完整的路径。...

2019-12-13 11:38:08 104

转载 C++(四)

北大程序设计与算法(一)结构体

2019-08-04 17:20:53 121

转载 C++(三)

指针

2019-08-04 16:15:57 141

原创 C++(一)

#include <iostream>#include <cstdio>using namespace std;int main() { cout << "hello" << endl; system("pause"); return 0;}

2019-08-03 18:26:50 87

转载 springmvc(一)

springmvc参数绑定-pojo绑定:在Controller中可以直接定义POJO类型的参数来接收请求中的数据。这种使用方式的条件是:在页面中input的name属性的值必须和POJO的属性一一对应!https://blog.csdn.net/u013310119/article/details/51741167...

2019-08-01 14:43:55 73

原创 leetcode(二)

ZigZag Conversion(6)Example 2:Input: s = “PAYPALISHIRING”, numRows = 4Output: “PINALSIGYAHRPI”Explanation:P I NA L S I GY A H RP Ipublic String convert(S...

2019-07-31 15:29:36 88

原创 leetcode(一)

leetcode题解备份,括号内为题号add two numbers(2)Example:Input: (2 -> 4 -> 3) + (5 -> 6 -> 4)Output: 7 -> 0 -> 8Explanation: 342 + 465 = 807.class Solution { public ListNode addT...

2019-07-31 09:55:17 86

原创 C(六)

内存管理#include <stdio.h>#include <stdlib.h>#include <string.h>void test1();int main(){ char name[100]; char *description; strcpy(name, "Zara Ali"); description ...

2019-07-30 16:36:18 95

转载 C(五)

file operation#include<stdio.h>int main(){ FILE *fp = NULL; fp = fopen("D:/test_file_c.txt", "a+"); fprintf(fp, "This is testing for fprintf...\n"); fputs("This is testing for ...

2019-07-30 09:47:46 112

转载 java并发(二)

ThreadLocal与事务,服务器(如tomcat)也维护了一个线程池。示例一:/** * 连接的工具类,它用于从数据源中获取一个连接,并且实现和线程的绑定 * utils.ConnectionUtils */public class ConnectionUtils { private ThreadLocal<Connection> tl = new Thre...

2019-07-30 00:03:51 59

转载 C(四)

union#include <stdio.h>#include <string.h>union Data{ int i; float f; char str[20];}; int main( ){ union Data data; printf( "Memory size occupied by data ...

2019-07-29 17:40:31 104

转载 C(三)

void test1() { int arr1[10]; printf("%d\n", sizeof(arr1)); for (int i = 0; i < sizeof(arr1) / sizeof(int); i++) { // 计算数组长度.. 粗糙的做法 arr1[i] = i; } for (int i = 0; i &...

2019-07-29 13:52:37 151

转载 C(二)

extern// test1.c#include<stdio.h>extern int x,y;int add() { return x + y;}// test2.c#include<stdio.h>#include<limits.h>int add(); // 函数声明int x = 1;int y = 2;int ma...

2019-07-26 15:04:11 123

转载 mybatis(一)

1、mybatis,配置数据库编码时,"&"符号用&代替<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybati...

2019-07-24 18:31:55 73

转载 PIL绘图(一)

图片修改颜色from PIL import Imageimg = Image.open("D:/logo4_CRRC.png")#读取系统的内照片#print (img.size)#打印图片大小width = img.size[0]#长度height = img.size[1]#宽度for i in range(0,width):#遍历所有长度的点 for j in ra...

2019-07-23 15:37:42 1487 1

原创 code detail(一)

...public void pop() { if (stack.isEmpty()) { return; // } // 这里包装类不能用“==”判断相等!!! if (stack.peek().equals(minStack.peek())) { // == minStack.pop(); ...

2019-07-22 16:19:38 159

转载 redis(一)

Jedis操作redis数据库import redis.clients.jedis.Jedis;public class JedisTest { public static void main(String[] args) { JedisTest ins = new JedisTest(); ins.test1(); } priv...

2019-07-20 22:58:45 64

原创 java基础(六)——ide常用快捷键

Eclipse hot keyAlt+<-,回退到光标上次的位置;选中代码片段,alt+↓,向下移动代码;

2019-07-19 09:35:57 225

转载 Servlet(二)

Cookie:1. 概念:客户端会话技术,将数据保存到客户端2. 快速入门: 使用步骤: 1. 创建Cookie对象,绑定数据 new Cookie(String name, String value) 2. 发送Cookie对象 response.addCookie(Cookie cookie) 3. 获取Cookie,拿到数据 Cookie[] req...

2019-07-13 18:46:42 93

转载 人工智能(一)

1、 向量化的计算速度远快于使用for循环,大概至少是前者的数百倍;并行化计算避免使用明确的for循环,让python更充分发挥CPU或者GPU的性能;jupyter notebook;SIMD->单指令多数据...

2019-07-11 14:35:05 91

转载 springboot(二)

1、springboot核心功能:起步依赖,自动配置

2019-07-07 11:31:35 65

转载 network(三)

1、HTTP1.0、HTTP1.1 和 HTTP2.0 的区别:https://www.cnblogs.com/heluan/p/8620312.html

2019-07-06 10:32:33 80

转载 Servlet(一)

1、服务器:安装了服务器软件的计算机。web服务器软件:接受用户请求,处理请求,做出响应。(web容器)

2019-07-03 22:23:48 68

转载 javascript(一)

1、1、基本数据类型: number:整数、小数、NaN; string; boolean; null:一个对象为空的占位符; undefined:未定义,一个变量未初始化时的默认值。2、<script> var num = 1; document.write(num + "------" + typeof(num) + "<br>");</s...

2019-06-30 14:47:34 65

转载 html5(二)

1、<a href="mailto:xxx@xxx.com">联系我们</a>2、cssdiv { background:url("img/logo.jpg") no-repeat center;}/* 使盒子大小不发生改变*/div { width: 200px; height: 200px; box-sizing: border-box; ...

2019-06-29 23:08:03 247

转载 Java基础(五)

1、反射1.1、可以在程序运行时操作对象;解耦,提高可扩展性。1.2、获取Class对象Class.forName(“类名”);xxx.class;xxx.getClass();private void test() throws Exception { Class<Person> cls1 = Person.class; Field age = cls1.getDec...

2019-06-29 18:40:46 78

转载 Java基础(四)

1、lambda表达式,延迟加载;函数式接口作为方法参数;1.1、java.util.function包下有许多函数式接口。@FunctionalInterfacepublic interface Supplier<T> { /** * Gets a result. * * @return a result */ T get...

2019-06-26 22:23:46 68

原创 network(二)

1、windows系统手动设置ip地址(ipv4)很容易。ipv6用16个字节表示ip地址。

2019-06-23 00:07:56 92

转载 java基础(二)

1、Lambda表达式(since jdk 1.8),前提->函数式接口。... new Thread( // Lambda表达式 () -> { System.out.println("执行线程:" + Thread.currentThread().getName()); } ).start();... ... int num ...

2019-06-16 23:11:02 73

转载 html5(一)

1、html5,视频标签:<!DOCTYPE html><html><head><meta charset="UTF-8"><title>runoob.com</title></head><body><video width="320" height="240" controls...

2019-06-13 13:53:11 74

转载 JQuery(一)

1、从CDN(内容分发网络)上加载JQuery,可以直接使用之。如:<script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script><script>$(document).ready(function(){ $("button").click(function(...

2019-06-12 11:16:39 91

转载 java并发(一)

1、事务引发的死锁:https://www.cnblogs.com/joyceTING/p/3806758.html

2019-06-12 10:20:32 65

转载 数据结构与算法(一)

1、稀疏数组

2019-05-31 22:27:29 75

转载 java面试(一)

1、微软经典面试100题系列:https://blog.csdn.net/zhoudaxia/article/details/8884557

2019-05-29 22:07:09 124

转载 maven(一)

1、dependence的version属性,可以覆盖库的版本号;或者在properties中知道版本号。如:<java.version>、<mysql.version>,这里mysql是groupId。

2019-05-26 21:00:24 75

转载 spring cloud(一)

1、soa架构,微服务架构

2019-05-26 10:33:33 72

转载 golang基础(九)

1、package mainimport ( "fmt" "image" // 图片)func main() { m := image.NewRGBA(image.Rect(0, 0, 100, 100)) fmt.Println(m.Bounds()) fmt.Println(m.At(0, 0).RGBA()) // (0,0)-(100,100) // 0 0 0 0...

2019-05-20 15:44:04 80

转载 golang基础(八)

1、// errorimport ( "fmt" "time")type MyError struct { When time.Time What string}func (e *MyError) Error() string { // 该函数意味MyError实现了error接口(内建) return fmt.Sprintf("at %v, %s", e.When, ...

2019-05-20 14:45:38 76

空空如也

空空如也

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

TA关注的人

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