首页 > 编程语言
javaweb基础(面试题)
请你谈谈网站是如何进行访问的 1.输入域名‘; 2.检查本机的C:\Windows\System32\drivers\etc\hosts配置文件下有没有这个域名的映射; 2.1 有:直接返回对应的IP地址。这个地址中,有需要访问的web程序,可以直接访问 eg:127.0.0.1 > www.kin ...
分类:编程语言   时间:2020-10-02 22:35:26    收藏:0  评论:0  赞:0  阅读:35
关于python print函数format 格式化
关于python print函数format 格式化 Your Guide to the Python print() Function https://realpython.com/python-f-strings/ https://realpython.com/python-f-strings/ ...
分类:编程语言   时间:2020-10-02 22:32:45    收藏:0  评论:0  赞:0  阅读:33
# 2020-10-02 #「Jenkins Pipeline」- java.io.NotSerializableException: java.util.regex.Matcher
在 09/11/2020 时,我们再次遇到该错误 问题描述 我们再次遇到该问题,发现导致异常的原因并不是 Matcher 没有匹配到内容。如下代码可以重现错误: pipeline { agent any stages { stage('xterm testing') { steps { script ...
分类:编程语言   时间:2020-10-02 22:28:25    收藏:0  评论:0  赞:0  阅读:42
Go语言入门之基础语法&基本数据类型--练气一层
Go语言结构 package main import "fmt" /** 入口程序 */ func main() { //打印hello world fmt.Println("Hello World !") } Go 语言的基础组成有以下几个部分: 包声明 引入包 函数 变量 语句 & 表达式 注释 ...
分类:编程语言   时间:2020-10-02 22:27:08    收藏:0  评论:0  赞:0  阅读:26
求和 --dfs序+树状数组
题意: 链接:https://ac.nowcoder.com/acm/contest/5158/I 思路:树状数组主要针对的是区间(而且是一条线段的)求和问题,所以需要利用dfs序和数组 in [ ], out [ ] (前缀和原理),利用dfs进行搜索,每个点依次被访问的顺序就是每个点的dfs序, ...
分类:编程语言   时间:2020-10-02 17:01:59    收藏:0  评论:0  赞:0  阅读:36
SpringMVC的请求和响应
SpringMVC的请求和响应 SpringMVC的数据响应 01-SpringMVC的数据响应-数据响应方式(理解) 页面跳转 直接返回字符串 通过ModelAndView对象返回 2) 回写数据 直接返回字符串 返回对象或集合 02-SpringMVC的数据响应-页面跳转-返回字符串形式(应用) ...
分类:编程语言   时间:2020-10-02 17:01:43    收藏:0  评论:0  赞:0  阅读:56
判断两个数的最小公倍数算法JAVA代码
package suxueyuanli; import java.util.Scanner; public class Lcm { public static void main(String[] args) { System.out.println("请输入两个正整数:"); @SuppressW ...
分类:编程语言   时间:2020-10-02 17:00:40    收藏:0  评论:0  赞:0  阅读:83
springmvc_ssm Spring、SpringMVC、MyBatis集成
集成流程理解 三层架构中,控制层调用Service层,Service层调用Dao层,控制层会将Bean对象注入到SpringMVCIOC容器中,Service和Dao层会将Bean对象注入到SpringIOC容器中,而SpringMVCIOC容器的父容器正好是SpringIOC容器,子容器可以使用父 ...
分类:编程语言   时间:2020-10-02 16:59:55    收藏:0  评论:0  赞:0  阅读:31
R语言实现提取奇数行、偶数行、整倍数行、奇数列、偶数列、整倍数列
1、创建测试数据 > dat <- as.data.frame(matrix(1:100,nrow =10)) > dat V1 V2 V3 V4 V5 V6 V7 V8 V9 V10 1 1 11 21 31 41 51 61 71 81 91 2 2 12 22 32 42 52 62 72 8 ...
分类:编程语言   时间:2020-10-02 16:58:58    收藏:0  评论:0  赞:0  阅读:426
Spring5入门-10-静态代理与动态代理
一、前言 参考视频:遇见狂神说-Spring5 参看博文::Java SDK动态代理类怎么调用到invoke()方法? ? 使用: IDEA 2019.3 Maven Junit 4.12 为什么要学代理模式?因为这就是SpringAOP的底层! 代理模式的分类: 静态代理 动态代理 二、角色分析 ...
分类:编程语言   时间:2020-10-02 16:58:00    收藏:0  评论:0  赞:0  阅读:23
Python 抓取网易云粉丝 第三种方法 【五】
import scrapy#持续写入 import time import random import math from Crypto.Cipher import AES import codecs import base64 import requests from lxml import et ...
分类:编程语言   时间:2020-10-02 16:57:31    收藏:0  评论:0  赞:0  阅读:32
Python实现AES加密,解密有借鉴意义
import base64 from Crypto.Cipher import AES # 密钥(key), 密斯偏移量(iv) CBC模式加密 def AES_Encrypt(key, data): vi = '0102030405060708' pad = lambda s: s + (16 - ...
分类:编程语言   时间:2020-10-02 16:54:25    收藏:0  评论:0  赞:0  阅读:28
spring_response
package com.zl.controller; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; @Controlle ...
分类:编程语言   时间:2020-10-02 16:54:10    收藏:0  评论:0  赞:0  阅读:36
Python实现AES加密,解密另一种方法
#!/usr/bin/env python #encoding=‘utf-8’ from Crypto.Cipher import AES from binascii import b2a_hex, a2b_hex from Crypto import Random class PrpCrypt(o ...
分类:编程语言   时间:2020-10-02 16:52:49    收藏:0  评论:0  赞:0  阅读:28
PHP socket 接收 java端口 netty 网络字节序
java 服务端测试代码: @Override public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) throws Exception { buffer.writeShort(5); buff ...
分类:编程语言   时间:2020-10-02 16:52:19    收藏:0  评论:0  赞:0  阅读:73
A ABB 马拉车算法
题意:给出一个字符串,让我们通过从右边+字符的方式来让这个字符串成为回文串 问最少用多少字符能使其成为回文串 思路:利用马拉车算法,在每个字符间补‘#’(防止考虑不到abba这种回文类型) 然后跑一遍求出len值 在枚举每个位置为中心点的情况,枚举出最优值即可 1 #include <bits/st ...
分类:编程语言   时间:2020-10-02 13:47:15    收藏:0  评论:0  赞:0  阅读:34
JavaScript基础 -- 作用域和this
作用域 作用域值一个变量的作用饿范围 在JS中一共有两种作用域: 1.全局作用域 - 直接写在script标签汇总的JS代码,都在全局作用域 - 全局作用域在页面打开的时候创建, 在页面关闭的时候小会 - 在全局作用域中有个全局对象window, 代表一个浏览器窗口,由浏览器创建,我们可以直接使用 ...
分类:编程语言   时间:2020-10-02 13:39:47    收藏:0  评论:0  赞:0  阅读:26
链表的归并排序
#include <algorithm> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> using namespace std; typedef struct LNode* LinkList; ...
分类:编程语言   时间:2020-10-02 13:38:34    收藏:0  评论:0  赞:0  阅读:18
python 递归迭代目录
from pathlib import Path def openfile(path:str)->None: yield path def cix(path:str): p=Path(path) if p.exists(): if p.is_file(): yield from openfile(s ...
分类:编程语言   时间:2020-10-02 13:38:20    收藏:0  评论:0  赞:0  阅读:28
Spring中编写单元测试
spring项目如何写单元测试 一、Junit4 后台开发过程中,写单元测试是非常重要的,对于我们开发人员调试、排查问题是很方便的, 但是我们在启动项目的时候,需要将所以类交给spring托管,在单元测试中需要怎么实现类的注入呢? 直接上图 继续上代码(Junit4) import org.juni ...
分类:编程语言   时间:2020-10-02 13:37:22    收藏:0  评论:0  赞:0  阅读:24
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!