自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(30)
  • 资源 (5)
  • 收藏
  • 关注

原创 4|servlet

请求转发请求转发的特点:1.浏览器地址栏没有变化2.他们是一次请求3.他们共享Request域中的数据4.可以转发到WEB-INF目录下5.不可以访问工程以外的资源package com.servlet;import java.io.IOException;import javax.servlet.RequestDispatcher;import javax.servlet.ServletException;import javax.servlet.annotation

2020-11-30 22:32:01 59 1

原创 3|Servlet

HttpRequestServlet类有什么用每次只要有请求进入Tomcat服务器,Tomcat服务器就会把请求过来的HTTP协议信息解析好封装到Request对象中,然后传递到service()方法[doGet和doPost]中给我们使用,我们通过HttpServletRequest对象,获取到所有请求的信息HttpServletRequest类的常用方法1.getRequestURI()2.getRequestURL()3. getRemoteHost()4. getHeader()5

2020-11-29 18:12:40 89 1

原创 2|servlet

ServletConfig类HelloServlet.java(一个servlet)package com.servlet;import java.io.IOException;import javax.servlet.ServletConfig;import javax.servlet.ServletException;import javax.servlet.annotation.WebServlet;import javax.servlet.http.HttpServlet;i

2020-11-28 20:49:43 69

原创 二|cocos

// Learn cc.Class:// - https://docs.cocos.com/creator/manual/en/scripting/class.html// Learn Attribute:// - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html// Learn life-cycle callbacks:// - https://docs.cocos.com/creato

2020-11-27 21:02:27 96

原创 1|servlet

01.什么是Servlet1.servlet是Java EE规范之一。规范就是接口2.servlet就是Java web三大组件之一。三大组件分别是: servlet程序,Filter过滤器,Listener监听器3.servlet是运行服务器上的一个java 小程序,他可以接收客户端发送过来的请求,并响应数据给客户端<?xml version="1.0" encoding="UTF-8"?><web-app xmlns:xsi="http://www.w3.org/20

2020-11-27 19:18:25 58

原创 605|Can Place Flowers(自己突然想出来错一次改一次改到包括所有情况)

605. 种花问题Suppose you have a long flowerbed in which some of the plots(n. 情节;阴谋;小块土地(plot的复数);平面图) are planted and some are not. However, flowers cannot be planted in adjacent plots(相邻的块) - they would compete for water and both would die.(竞争水并且都会死)意思就是种花不

2020-11-25 00:17:17 146

原创 3|javascript

051字符窜的练习

2020-11-24 20:51:35 195

原创 !!!---1588|Sum of All Odd Length Subarrays(新)

Given an array of positive integers arr, calculate the sum of all possible odd-length subarrays.A subarray is a contiguous subsequence of the array.Return the sum of all odd-length subarrays of arr.Example 1:Input: arr = [1,4,2,5,3]Output: 58Explanat

2020-11-23 16:13:22 135

原创 1351|Count Negative Numbers in a Sorted Matrix(数组)

计算在有序矩阵的负数个数Given a m * n matrix grid which is sorted in non-increasing order both row-wise and column-wise. (行和列的非递增顺序。)Return the number of negative numbers in grid.Example 1:Input: grid = [[4,3,2,-1],[3,2,1,-1],[1,1,-1,-2],[-1,-1,-2,-3]]Output: 8E

2020-11-23 15:17:09 87

原创 2|javascript

045认识字符串<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title>045认识字符串</title> <script> /* 字符窜概念:所有带单引号或者双引号的叫做字符窜 字符窜声明: 1.通过new运算符去声明字符窜 2.省略new声明字符窜 3.字符窜常量赋值 */

2020-11-23 01:39:43 63

原创 1|shell

01.shell介绍用法:#ls -lh 路径含义:列出指定路径下的所有文件/文件夹的名称,以列表的形式并且显示文档大小的时候以可读性较高的形式显示Cat指令语法:#cat 文件的路径作用1:cat可以直接打开一个文件的功能。用户打开终端的时会自动打开一个shell02.shell 脚本03.shell 脚本基本写法04.shell 脚本的执行方式first_shell.sh:指令:rm作用:移除/删除文档语法:#rm 选项 需要移除的文档

2020-11-22 22:30:46 99

原创 1275|Find Winner on a Tic Tac Toe Game(数组)

找出井字棋的获胜者Tic-tac-toe(井字游戏) is played by two players A and B on a 3 x 3 grid.Here are the rules of Tic-Tac-Toe:Players take turns placing characters into empty squares (" ").The first player A always places “X” characters, while the second player B alwa

2020-11-20 19:25:24 159

原创 88.|Merge Sorted Array(合并有序数组)

Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array.Note:The number of elements initialized in nums1 and nums2 are m and n respectively.You may assume that nums1 has enough space (size that is equal to m + n) to h

2020-11-20 15:47:12 173

原创 832|Flipping an Image(数组)

832. 翻转图像Given a binary matrix(二进制矩阵) A, we want to flip(翻转) the image horizontally, then invert it, and return the resulting image.To flip an image horizontally means that each row of the image is reversed. For example, flipping [1, 1, 0] horizontally

2020-11-19 22:19:10 69

原创 219.|Contains Duplicate II

存在重复元素IIGiven an array of integers and an integer k, find out whether there are two distinct(不同的 明显的 清楚的) indices(n. 指数;目录(index的复数)) i and j in the array such that nums[i] = nums[j] and the absolute difference(绝对差) between i and j is at most k.(最多k)给定一

2020-11-19 12:24:30 66

原创 1550.| Three Consecutive Odds(数组)

存在连续三个奇数的数组Given an integer array arr, return true if there are three consecutive (adj. 连贯的;连续不断的)odd numbers in the array. Otherwise, return false.Example 1:Input: arr = [2,6,4,1]Output: falseExplanation: There are no three consecutive odds.Example

2020-11-19 11:57:23 146

原创 1|javascript

javascript02<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title>Document</title> <script> /* ECMA javascript组成 1.ECMAScript 3,4 5,6,7(js标准) 2.DOM 文档(从一个html标签到结束

2020-11-19 01:07:51 96

原创 628.|Maximum Product of Three Numbers(Math.max和Arrays.sort)

Java max() 方法Java Number类Java Number类max() 方法用于返回两个参数中的最大值。语法该方法有以下几种语法格式:double max(double arg1, double arg2)float max(float arg1, float arg2)int max(int arg1, int arg2)long max(long arg1, long arg2)参数该方法接受两个原生数据类型作为参数。返回值返回两个参数中的最大值。实例publ

2020-11-18 16:22:35 68

转载 面试题 17.10|主要元素(摩尔投票法+数组)

package com.javaknowlege;public class mole { static int majorElement(int nums[]){ int major=nums[0]; int cnt=0; int numsSize=nums.length; for(int i=0;i<numsSize;i++){ if(cnt==0) { m

2020-11-18 15:49:56 119

原创 4|Vue

030-Vue–父传子我们想让子组件分别显示自己的值,而不是统一的,我们希望接受父组件的管理来显示自己的值:现在想父子传值给儿子:动态的绑定当做js来props 类型: String[],Object 所属对象: ComponentOptions 参考: https://cn.vuejs.org/v2/api/#props props 可以是数组或对象,用于接收来自父组件的数据。props 可以是简单的数组,或者使用对象作为替代,对象允许配置高级选项,如类型检测、自

2020-11-16 20:08:52 81

原创 977.|Squares of a Sorted Array

Given an array of integers A sorted in non-decreasing order, return an array of the squares of each number, also in sorted non-decreasing order.Example 1:Input: [-4,-1,0,3,10]Output: [0,1,9,16,100]Example 2:Input: [-7,-3,2,3,11]Output: [4,9,9,49,121]

2020-11-13 18:42:20 91

原创 4|Median of Two Sorted Arrays

Given two sorted arrays nums1 and nums2 of size m and n respectively, return the median of the two sorted arrays.Follow up: The overall run time complexity should be O(log (m+n)).Example 1:Input: nums1 = [1,3], nums2 = [2]Output: 2.00000Explanation: m

2020-11-13 16:06:52 56

原创 cocos|1

// Learn cc.Class:// - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/class.html// - [English] http://docs.cocos2d-x.org/creator/manual/en/scripting/class.html// Learn Attribute:// - [Chinese] https://docs.cocos.com/creator/manual/zh/s

2020-11-13 09:48:42 93

原创 3|Vue

021.vue表单修饰符<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title></title> <script src="lib/vue.js"></script> </head> <body> <div id="box"> <input type="text" v-model

2020-11-12 22:34:35 130

原创 2|vue

13.事件修饰符<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title></title> <script src="lib/vue.js"></script> </head> <body> <div id="box"> <button @click="handleClick"&

2020-11-11 15:46:30 119

原创 1|vue

https://cn.vuejs.org/vue介绍下载:https://cn.vuejs.org/v2/guide/installation.html下载后有一个Vue.js复制到创建的项目Vue的lib下再创建一个html,引入vue.js<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title></title> <script ty

2020-11-09 19:54:54 631 1

原创 7|the summary of web study

网站技术三大核心技术html基本结构和属性HTML初始代码html注释html语义化标题与段落文本修饰标签图片标签与图片属性

2020-11-07 17:14:03 61

原创 1|Bootstrap

https://getbootstrap.com/在md下,一行放两个,在ld模式下,一行放3个在最大的分辨率下xl,放4个bootstrap的contentcomponent组件

2020-11-05 01:57:31 238 1

原创 5|the summary of web study

文章图标的添加

2020-11-02 22:04:55 83

原创 2.1 |servlet

什么是servlet?servlet规范的三个技术点servlet架构servlet主要任务servlet的基本使用

2020-11-02 01:36:56 48

MySpringDemo.rar

spring

2021-04-30

2020-12-11外刊

外刊the dawn of digital medicine外刊the dawn of digital medicine

2020-12-11

12.16月赛cuo代码

12.16月赛cuo代码12.16月赛cuo代码12.16月赛cuo代码12.16月赛cuo代码12.16月赛cuo代码12.16月赛cuo代码

2020-09-21

eclipse安装过程

eclipse安装过程eclipse安装过程eclipse安装过程eclipse安装过程eclipse安装过程eclipse安装过程

2020-09-21

1多线程|java socket|1.多线程.pptx

什么是多线程 如果在一个进程中同时运行了多个线程,用来完成不同的工作,则称之为“多线程” 多个线程交替占用CPU资源,而非真正的并行执行 多线程好处 充分利用CPU的资源 简化编程模型 带来良好的用户体验

2020-09-11

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

TA关注的人

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