自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 【LeetCode】1. 两数之和

https://leetcode-cn.com/problems/two-sum/class Solution { public int[] twoSum(int[] nums, int target) { for(int i = 0; i < nums.length;i++){ for(int j = i+1;j<nums.length;j++){ if(nums[i] + nums[j] != target)

2020-09-02 14:54:10 79

原创 pytorch搭建VGG网络

前言这篇内容主要参考了B站的一个Up主的视频~~视频链接 https://www.bilibili.com/video/BV1i7411T7ZNup主的github:https://github.com/WZMIAOMIAO/deep-learning-for-image-processingVGG论文地址VGG 在2014年由牛津大学著名研究组 VGG(Visual Geometry Group) 提出,斩获该年 ImageNet 竞赛中 Localization Task(定位任务)第一

2020-08-11 15:18:43 752

原创 吴恩达机器学习ex1

1-单变量线性回归案例:假设你是一家餐厅的CEO,正在考虑开一家分店,根据该城市的人口数据预测其利润。我们拥有不同城市对应的人口数据以及利润: ex1data1.txt先引入库import numpy as npimport pandas as pdimport matplotlib.pyplot as plt读取数据data = pd.read_csv('ex1data1.txt',names=['population','profit'])data.head() #打印前5行

2020-07-16 10:42:26 713

原创 关于哈夫曼编码压缩文件

参考Crash Course的课程,做下笔记,原视频在这里 ↓https://www.bilibili.com/video/BV1EW411u7th?p=21我们要对如下一张 4像素 X 4像素的 图片进行压缩,而在磁盘中图片是一串像素值的形式存储的,每个像素的颜色由RGB确定,这样一张图片需要 48(16*3) 个字节为了能够压缩图片,我们需要减少冗余的信息或者用更紧凑的表示方...

2020-05-02 12:33:38 756

原创 微信小程序事件传参

详细可以参考官方文档https://developers.weixin.qq.com/miniprogram/dev/framework/view/wxml/event.html#%E4%BA%8B%E4%BB%B6%E7%9A%84%E4%BD%BF%E7%94%A8%E6%96%B9%E5%BC%8F简单来说,在wxml中通过 data-… 来绑定属性, 这里我用了data-id&l...

2020-04-30 11:31:43 223

转载 冯诺依曼体系结构

转载自:https://blog.csdn.net/u010593947/article/details/57417504当前计算机主要是基于冯诺依曼体系结构设计的,下面就简单分析一下冯诺依曼体系结构的计算机是如何工作的,首先下面的图就是冯诺依曼体系结构图。主要由五大部件组成1.存储器用来存放数据和程序2.运算器主要运行算数运算和逻辑运算,并将中间结果暂存到运算器中3.控制器主要用...

2020-04-29 19:31:45 659

转载 分页、分段

分页系统地址映射内存管理单元(MMU)管理着地址空间和物理内存的转换,其中的页表(Page table)存储着页(程序地址空间)和页框(物理内存空间)的映射表。一个虚拟地址分成两个部分,一部分存储页面号,一部分存储偏移量。下图的页表存放着 16 个页,这 16 个页需要用 4 个比特位来进行索引定位。例如对于虚拟地址(0010 000000000100),前 4 位是存储页面号 2,读取表项...

2020-04-28 10:37:02 395

转载 页面置换算法

请求分页系统建立在基本分页系统基础之上,为了支持虚拟存储器功能而增加了请求调页功能和页面置换功能。请求分页是目前最常用的一种实现虚拟存储器的方法。在请求分页系统中,只要求将当前需要的一部分页面装入内存,以便可以启动作业运行。在作业执行过程中,当所要访问的页面不在内存时,再通过雕爷功能将其调入,同时还可以通过置换功能将暂时不用的页面换出到外存上,以便腾出内存空间。页面置换算法的主要目标是使页面置...

2020-04-27 21:02:09 15934 2

原创 SpringBoot拿不到POST方式的wx.request?

小程序端代码 wx.request({ url: 'xxxx' data: { studentId: e.detail.value.no, password: e.detail.value.pwd }, method:'POST', header: { 'content-type': 'a...

2020-04-23 10:10:29 526

原创 密码技术整理

基本概念密码学分为密码编码学和密码分析学密码编码学目的是寻求保证信息的保密性、完整性、真实性和不可否认性密码分析学目的是研究加密信息的破译和信息伪造的方法现代密码系统分为两类:对称密码系统和非对称(公钥)密码系统对称密码系统加密和解密使用同一个密钥。常见算法有DES、AES、RC4等非对称密码系统加密和解密密钥不同。 常见算法有RSA、椭圆曲线算法对称密码古典密码...

2020-04-13 21:10:00 352 1

原创 numpy笔记

ndarray创建方式# 1.从列表、元组等类型创建ndarrayx1 = np.array([1,2,3,4])print(x1)x2 = np.array((5,6,7,8))print(x2)x3 = np.array([[1,2],[3,4],(0.2,0.5)])print(x3)# 2.arange ones zeros等函数y1 = np.arange(10)p...

2020-04-07 17:05:40 129

原创 TCP UDP的比较

UDPTCP是否连接无连接面向连接是否可靠不可靠传输,不使用流量控制和拥塞控制可靠传输,使用流量控制和拥塞控制连接对象个数支持一对一,一对多,多对一和多对多交互通信只能是一对一通信传输方式面向报文面向字节流首部开销首部开销小,仅8字节首部最小20字节,最大60字节适用场景适用于实时应用(IP电话、视频会议、直播等)适用于...

2020-04-06 21:03:20 117

转载 TCP三次握手

本文经过借鉴书籍资料、他人博客总结出的知识点,欢迎提问序列号seq:占4个字节,用来标记数据段的顺序,TCP把连接中发送的所有数据字节都编上一个序号,第一个字节的编号由本地随机产生;给字节编上序号后,就给每一个报文段指派一个序号;序列号seq就是这个报文段中的第一个字节的数据编号。确认号ack:占4个字节,期待收到对方下一个报文段的第一个数据字节的序号;序列号表示报文段携带数据的第一个字节的...

2020-04-06 20:57:02 122

转载 操作系统中调度算法(FCFS、RR、SPN、SRT、HRRN)

决策模式决策模式说明选择函数在执行的瞬间的处理方式,通常分为以下两类:非抢占:一旦进入运行状态,就不会终止直到运行结束。抢占:当前正在运行的进程可以被打断,并转移到就绪态。一个调度算法是否能抢占,对进程的顺序有着极大的影响。先来先服务FCFS先来先服务是最简单的策略,也成为先进先出FIFO。首先它是一个非抢占的。如字面的意思,它根据进程到达时间决定先运行哪一个进程。这里给出一个实际的...

2020-03-30 19:55:33 2645

原创 关于最小生成树算法

借助可视化工具分析一哈https://visualgo.netKruskal(克鲁斯卡尔)算法根据我的理解,就是每次选择一条权重最小的边,且加入这条边后不构成环路,最后组成一棵树以下图的情形为例初始状态节点1 、 2之间权重最小,加入这条边节点0 、1 与节点0 、 2之间权重都为4,加入其中一条首先尝试将0 2 这条边加入,但是此时会构成回路选择将权重...

2020-03-23 21:22:01 254

原创 关于路由协议的整理

快忘干净了 怕复试翻车,再整理一哈协议RIPOSPFBGP类型内部内部外部路由算法距离-向量链路状态路径-向量传递协议UDPIPTCP路径选择跳数最少代价最低较好,非最佳交换节点本节点相邻的路由器网络中的所有路由器本节点相邻的路由器交换内容整个路由表与本路由器相邻的所有路由器的链路状态首次:整个路由表 ...

2020-03-22 15:43:59 233

原创 Mybatis级联查询 一对一 应用

简单记录一哈以毕设项目为例实体类studentprivate Integer s_id; //主键 private String s_studentid; private String s_password; private String s_name; private Integer s_gender; private Integer s_ag...

2020-03-17 21:43:46 91

原创 Spring相关注解

Spring注解用于创建对象的注解@Component相当于把类对象存入Spring容器属性:value:用于指定bean的id, 不写的时候,默认值为当前类名且首字母小写。@Component(value = “xxxx”)@Controller 一般用于表现层@Service 一般用于业务层@Repository 一般用于持久层...

2020-02-11 15:37:57 82

原创 LeetCode 61. Rotate List

Given a linked list, rotate the list to the right by k places, where k is non-negative.Example 1:Input: 1->2->3->4->5->NULL, k = 2Output: 4->5->1->2->3->NULLExplanati...

2020-02-03 16:18:45 80

原创 LeetCode 141. Linked List Cycle

Given a linked list, determine if it has a cycle in it.To represent a cycle in the given linked list, we use an integer pos which represents the position (0-indexed) in the linked list where tail con...

2020-02-03 14:53:51 104

原创 LeetCode 83. Remove Duplicates from Sorted List

Given a sorted linked list, delete all duplicates such that each element appear only once.Example 1:Input: 1->1->2Output: 1->2Example 2:Input: 1->1->2->3->3Output: 1->2-&...

2020-01-30 20:16:23 85

原创 LeetCode 21. Merge Two Sorted Lists

Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.Example:Input: 1->2->4, 1->3->4Output: 1-&gt...

2020-01-30 19:32:59 79

原创 关于wamp单独启动mysql

这里写自定义目录标题之前装了wamp写php,现在写jsp也得用mysql,so 需要单独启动mysql之前装了wamp写php,现在写jsp也得用mysql,so 需要单独启动mysql首先得把mysql的bin目录加入到环境变量中以我的目录为例D:\wamp\bin\mysql\mysql5.7.14\bin在我的电脑-属性-高级系统设置-高级-环境变量 下面的系统变量里面 ...

2019-03-12 13:12:26 512

转载 preparedStatement和Statement区别

原文:https://blog.csdn.net/xuebing1995/article/details/72235380  一、概念PreparedStatement是用来执行SQL查询语句的API之一,Java提供了 Statement、PreparedStatement 和 CallableStatement三种方式来执行查询语句,其中 Statement 用于通用查询, Prep...

2018-12-16 20:45:26 22575 3

原创 关于nginx vhost 多站点配置

因为最近有两个项目需要同时上线,研究了一下nginx的vhost配置,记录一下过程。1.首先需要添加解析二级域名我用的是腾讯云平台,在控制台找到 云解析-域名解析列表根据提示添加好二级域名。这里我加了一条 bigdata.minoslee.cn的解析记录。2. nginx 设置找到 nginx.conf 文件在配置文件后 增加一句include vhost/*.conf;...

2018-11-08 22:03:56 5470

原创 java 构造器初始化顺序

在类的内部,变量定义的先后顺序决定了初始化的顺序。即使变量定义散布于方法定义之中,它们仍旧会在**任何方法(包括构造器)**被调用之前得到初始化。class Window { Window(int marker){ System.out.println("window(" + marker + ")"); }}class House { Window...

2018-11-02 20:47:58 254

原创 SQL 练习题

题目来源 https://blog.csdn.net/qaz13177_58_/article/details/5575711/找到一些比较经典的sql 查询练习题,立个flag ,每天敲点!先创建一下表结构CREATE TABLE STUDENT ( SNO VARCHAR (3) NOT NULL, SNAME VARCHAR (4) NOT NULL, SSEX VARCHAR ...

2018-10-31 20:32:00 263

原创 关于echarts 词云鼠标悬浮错位的问题

最近使用echarts插件做了一个数据可视化的demo,发现使用词云时,数据错位了。解决方法就是 把option里面的数据根据value值降序排序。可以在后台排序完返回给前端,也可以直接用js处理。...

2018-10-31 19:27:00 1108

原创 1009 Product of Polynomials (25 分)

This time, you are supposed to find A×B where A and B are two polynomials.Input Specification:Each input file contains one test case. Each case occupies 2 lines, and each line contains the informati...

2018-09-19 20:20:36 312

原创 1006 Sign In and Sign Out (25 分)

At the beginning of every day, the first person who signs in the computer room will unlock the door, and the last one who signs out will lock the door. Given the records of signing in’s and out’s, you...

2018-09-19 19:53:25 573

原创 1032 Sharing (25)(25 分)

To store English words, one method is to use linked lists and store a word letter by letter. To save some space, we may let the words share the same sublist if they share the same suffix. For example,...

2018-08-14 10:48:44 435

原创 1039 Course List for Student (25)(25 分)

Zhejiang University has 40000 students and provides 2500 courses. Now given the student name lists of all the courses, you are supposed to output the registered course list for each student who comes ...

2018-08-13 21:33:12 452

原创 1025 PAT Ranking (25)(25 分)

Programming Ability Test (PAT) is organized by the College of Computer Science and Technology of Zhejiang University. Each test is supposed to run simultaneously in several places, and the ranklists w...

2018-08-13 14:50:35 186

原创 1017 Queueing at Bank (25)(25 分)

uppose a bank has K windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. All the customers have to wait in line behind the yellow lin...

2018-08-13 12:03:28 192

原创 1023 Have Fun with Numbers (20)(20 分)

Notice that the number 123456789 is a 9-digit number consisting exactly the numbers from 1 to 9, with no duplication. Double it we will obtain 246913578, which happens to be another 9-digit number con...

2018-08-09 10:05:24 136

原创 1020 Tree Traversals (25)(25 分)

Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, you are supposed to output the level order traversal sequence of the cor...

2018-08-08 21:28:05 654

原创 1012 The Best Rank (25)(25 分)

To evaluate the performance of our first year CS majored students, we consider their grades of three courses only: C - C Programming Language, M - Mathematics (Calculus or Linear Algebra), and E - Eng...

2018-08-08 21:02:57 316

原创 1009 Product of Polynomials (25)(25 分)

This time, you are supposed to find A*B where A and B are two polynomials.Input Specification:Each input file contains one test case. Each case occupies 2 lines, and each line contains the informa...

2018-08-08 15:05:06 89

原创 1035 Password (20)(20 分)

To prepare for PAT, the judge sometimes has to generate random passwords for the users. The problem is that there are always some confusing passwords since it is hard to distinguish 1 (one) from l (L ...

2018-08-01 10:12:23 240

原创 1050 String Subtraction (20)(20 分)

Given two strings S~1~ and S~2~, S = S~1~ - S~2~ is defined to be the remaining string after taking all the characters in S~2~ from S~1~. Your task is simply to calculate S~1~ - S~2~ for any given str...

2018-08-01 10:10:37 172

空空如也

空空如也

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

TA关注的人

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