自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

ax478的博客

与其停在原地迷茫无所事事,不如在键盘上飞舞敲敲代码

  • 博客(38)
  • 资源 (1)
  • 收藏
  • 关注

原创 【SQL】CASE WHEN语句

本文为个人学习笔记,材料取自leetcodeCASE WHEN语句可用于流程控制。CASE有两种格式:简单CASE与CASE搜索函数--简单Case函数CASE sexWHEN '1' THEN '男'WHEN '2' THEN '女'ELSE '其他' END --Case搜索函数 CASE WHEN sex = '1' THEN '男' WHEN sex = '2' ...

2019-07-26 15:11:57 251

原创 【SQL】GROUP BY语句

本文为个人学习笔记,材料取自牛客网在线编程GROUP BY语句通常用于结合sum()函数,根据一个或多个列对结果集进行分组。例题:题目描述按照dept_no进行汇总,属于同一个部门的emp_no按照逗号进行连接,结果给出dept_no以及连接出的结果employeesCREATE TABLE dept_emp (emp_no int(11) NOT NULL,dept_no ch...

2019-07-26 11:36:46 215

原创 【SQL】ORDER BY语句及substr函数

本文为个人学习笔记,材料取自牛客网在线编程ORDER BY语句用于根据指定列(字段)对结果集进行排序,默认为升序,使用DESC关键字可以改为降序。例题:题目描述获取Employees中的first_name,查询按照first_name最后两个字母,按照升序进行排列CREATE TABLE employees (emp_no int(11) NOT NULL,birth_date...

2019-07-26 10:40:14 1380

原创 【SQL】LIMIT子句

本SQL系列为学习笔记,材料取自于牛客网在线编程LIMIT子句可用于限制SELECT语句返回的行数。直接看例题:题目描述分页查询employees表,每5行一页,返回第2页的数据CREATE TABLE employees (emp_no int(11) NOT NULL,birth_date date NOT NULL,first_name varchar(14) NOT ...

2019-07-25 17:47:32 275

原创 Git常用命令

(lry_adminGetUserInfo)$ git checkout developSwitched to a new branch 'develop'Branch 'develop' set up to track remote branch 'develop' from 'origin'.(develop)$ git pullAlready up to date.(dev...

2018-06-28 11:59:58 295

原创 Git pull

git add . :他会监控工作区的状态树,使用它会把工作时的所有变化提交到暂存区,包括文件内容修改(modified)以及新文件(new),但不包括被删除的文件。即提交新文件(new)和被修改(modified)文件,不包括被删除(deleted)文件$ git add .提交本地分支$ git commit -m 'lry'[master 50f8f84] lry$ gi...

2018-06-22 16:59:22 166

原创 Git pull——取分支整合

检查分支$ git checkout -b lrySwitched to a new branch 'lry'M pom.xmlM src/main/resources/application.properties$ git statusOn branch lryChanges not staged for commit: (use "git a...

2018-06-20 11:51:21 1557

原创 Git仓库克隆

设置ssh公钥# 这里点三次回车,默认确认就行了$ ssh-keygenGenerating public/private rsa key pair.Enter file in which to save the key (/c/Users/pc/.ssh/id_rsa):/c/Users/pc/.ssh/id_rsa already exists.Overwrite (y/n)?...

2018-06-20 09:51:39 214

转载 UML类图几种关系的总结

转载自UML类图几种关系的总结 在UML类图中,常见的有以下几种关系: 泛化(Generalization), 实现(Realization),关联(Association),聚合(Aggregation),组合(Composition),依赖(Dependency)1. 泛化(Generalization)【泛化关系】:是一种继承关系,表示一般与特殊的关系,它指定了子类如何特化父类的所...

2018-06-13 16:30:06 199

转载 spring boot入门 -- spring boot + Thymeleaf开发web项目

“Spring boot非常适合Web应用程序开发。您可以轻松创建自包含的HTTP应用。web服务器采用嵌入式Tomcat,或者Jetty等。大多数情况下Web应用程序将使用spring-bootstarter-web模块快速启动和运行。”本例子通过显示用户列表展示如何使用spring boot和Thymeleaf开发web项目。几点说明:Spring boot开发web项目,通常打...

2018-06-12 10:57:59 317

转载 spring boot入门 -- 介绍和第一个例子

“越来越多的企业选择使用spring boot 开发系统,spring boot牛在什么地方?难不难学?心动不如行动,让我们一起开始学习吧!”使用Spring boot ,可以轻松的创建独立运行的程序,非常容易构建独立的服务组件,是实现分布式架构、微服务架构利器。Spring boot简化了第三方包的引用,通过提供的starter,简化了依赖包的配置。Spring boot的优点...

2018-06-12 09:13:16 335

转载 Tomcat的下载与安装以及配置到Eclipse中

为了Java Web的开发,下面我们来安装一下Tomcat服务器,并将其配置在Eclipse中,前提是Eclipse已经安装完毕并可以正常使用,一、Tomecat的下载与安装1.首先从tomcat的官网下载适合自己操作系统的版本,网址http://tomcat.apache.org/download-90.cg...

2018-06-06 10:49:53 500

原创 python基础(六)——爬虫

内容来源:雨敲窗python教程 爬取糗事百科的段子#_*_ coding: utf-8 _*_import reimport requestsimport htmlimport timedef crawl_joke_list(page = 1): url = "https://www.qiushibaike.com/8hr/page/" + str(page)...

2018-04-27 12:44:57 373 2

原创 LeetCode第九题(Palindrome Number)

Palindrome Number Determine whether an integer is a palindrome. Do this without extra space.Some hints:Could negative integers be palindromes? (ie, -1)If you are thinking of converting the ...

2018-04-10 01:25:23 154

原创 LeetCode第八题(String to Integer (atoi))

String to Integer (atoi) Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself w...

2018-04-10 01:10:57 156

原创 LeetCode第七题(Reverse Integer)

Reverse Integer Given a 32-bit signed integer, reverse digits of an integer.Example 1:Input: 123Output: 321Example 2:Input: -123Output: -321Example 3:Input: 120Output: 21 Note...

2018-04-10 00:04:19 169

原创 LeetCode第六题(ZigZag Conversion)

ZigZag Conversion The string “PAYPALISHIRING” is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)P ...

2018-04-09 01:24:45 151

原创 python基础(五)——二叉树的实现

class Node(object): def __init__(self, index): self.index = index self.left_child = None self.right_child = Noneclass BinarySearchTree(object): def __init__(self, root...

2018-04-08 11:53:23 248

原创 python基础(四)——读写文件

#_*_ coding: utf-8 _*_#写文件,先以w的格式打开文件(w即write,写),再writelines()写文件f = open("c:/Users/47864/Desktop/2.txt", "w")f.writelines("read success\n" + "lkzlso")f.close()print("write success!")#读文件,直接open...

2018-04-08 11:51:09 176

原创 python基础(三)——正则表达式

import re#匹配abcm = re.findall("abc", "aabbccabccbaccbaaabcabc")print(m)#匹配一位数字,digitm = re.findall("\d", "123abc1a2b3c1b2c3a")print(m)#匹配四位数字m = re.findall("\d\d\d\d", "123abc1234ab12345c"

2018-04-08 11:49:54 424

原创 python基础(二)——类与方法

class human(object): #定义一个父类 def __init__(self, name): self.__name = name self.__walk = True def get_name(self): return self.__name def set_name(self, name): ...

2018-04-08 11:48:51 149

原创 python基础(一)——字符串操作

#find():查找字符位置并返回下标,没找到返回-1s = "abc"print(s.find("b"))print(s.find("z"))#title():把字符串转换为第一个字符大写的格式,用于开头,返回字符串print(s.title())#split():通过指定字符分隔字符串,返回列表s = "axsadjx sjhx"print(s.split("x"))#upp...

2018-04-08 11:47:35 204

原创 求1到n的所有正整数中,有多少个数的约数个数是奇数

Description hry在学小学数学的时候就在琢磨一个问题。。1到n的所有正整数中,有多少个数的约数个数是奇数?Input 第一行有一个正整数T,表示有T组测试数据。 每组测试数据一行一个正整数n. (1<=T<=10000,1<=n<=1000000000000000000)Output 每组数据输出一行一个整数,表示1-n...

2018-04-08 11:42:28 2484

原创 判断一个十进制正整数是不是2的幂

Description hry进入大学之后学习了二进制,有一天他遇到这样一个问题,判断一个十进制正整数是不是2的幂?Input 第一行是一个正整数T,表示有T组测试数据。 每组测试数据有一行一个正整数n。 (1<=T<=10000,1<=n<=1000000000000000000)Output 每组测试数据输出一行,如果n是2的幂...

2018-04-08 11:25:01 784

原创 小明走楼梯——斐波那契数列的变态版变种

小明走楼梯Description 小明来走楼梯啦! 众所周知小明有个怪癖,就是上楼梯的时候一步跨的台阶数一定是2的幂。 那么问题来了,对于一个有n个台阶的楼梯,小明有多少种不同的上楼梯的办法使得他刚好走完这个楼梯?Input 第一行是一个正整数T,表示有T组测试数据。 每组测试数据有一行一个正整数n,表示楼梯的台阶数。 (1<=T<=50000,1...

2018-04-06 21:27:50 1701

原创 判断这两个数组中是否有相同的数(C++)

判断这两个数组中是否有相同的数、 Description 给定两个整数数组,判断这两个数组中是否有相同的数。 Input 第一行是一个正整数T,表示测试数据组数。 每组测试数据中,第一行有两个正整数n,m,分别表示两个数组的长度。 第二行有n个整数,表示第一个数组。第三行有m个整数,表示第二个数组。 (1<=T<=10,1<=n,m...

2018-04-04 21:26:59 8258 1

原创 LeetCode第五题(Longest Palindromic Substring)

Longest Palindromic Substring Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000.Example1:Input: "babad"Output: "bab"Note: ...

2018-04-03 22:34:19 572 1

原创 LeetCode第371题(Sum of Two Integers)

Sum of Two Integers Calculate the sum of two integers a and b, but you are not allowed to use the operator + and -.Example:Given a = 1 and b = 2, return 3.Credits:Special thanks to @f...

2018-03-31 23:08:26 148

原创 LeetCode第四题(Median of Two Sorted Arrays)

Median of Two Sorted Arrays There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (...

2018-03-31 17:24:33 154

原创 LeetCode第三题(Longest Substring Without Repeating Characters)

Longest Substring Without Repeating Characters Given a string, find the length of the longest substring without repeating characters.Examples:Given "abcabcbb", the answer is "abc", which the ...

2018-03-31 17:22:38 130

原创 LeetCode第二题(Add Two Numbers)

Add Two Numbers You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two ...

2018-03-31 17:21:31 124

原创 LeetCode第一题(Two Sum)

Two Sum Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have exactly one solution, and you may n...

2018-03-31 17:14:26 161

转载 html快速参考手册

转载自w3school,原文链接http://www.w3school.com.cn/html/html_quick.aspHTML 4.01 快速参考HTML 文档类型XHTML 简介来自 W3School 的 HTML 快速参考。可以打印它,以备日常使用。HTML Basic DocumentDocument na

2017-09-18 23:25:02 407

转载 高质量代码的命名法则

取一个好名字最难的地方在于需要良好的描述技巧和共有的文化背景。与其说这是一种技术、商业或管理问题,还不如说这是一种教学问题。若你一直保持输出整洁代码的习惯,长期来看,会让你的整体效率和代码质量大大提升。

2016-10-17 23:27:23 234

原创 个性化修改U盘图标

一、 将图片转化为.ico格式二、 更改U盘图标三、 隐藏图标相关文件及其恢复

2016-10-15 00:15:33 9322

转载 CentOS7 安装LNMP(Linux+Nginx+MySQL+PHP)

原文链接:点击打开链接这里我们将搭建Linux(CentOS7+Nginx+MySQL+PHP)下的web服务器。一、安装httpd。yum install -y httpd 安装完成之后使用以下命令启动httpd服务: systemctl start httpd.service #启动apache systemctl stop httpd.service

2016-10-02 23:40:33 405

转载 CentOS7下无法启动mysql的解决办法

原文链接:点击打开链接MariaDB数据库管理系统是MySQL的一个分支,主要由开源社区在维护,采用GPL授权许可。开发这个分支的原因之一是:甲骨文公司收购了MySQL后,有将MySQL闭源的潜在风险,因此社区采用分支的方式来避开这个风险。[3]MariaDB的目的是完全兼容MySQL,包括API和命令行,使之能轻松成为MySQL的代替品。在存储引擎方面,10.0.9版起使

2016-10-02 22:24:49 399

转载 VS2012常用快捷键

(1)如何设置更改快捷键1.进入工具----选项  对话框2.选择  环境---->键盘3.在 【显示命令包含】 下面的对话框中输入“对齐”关键字,然后就会在这个编辑框下面一个文本窗口中显示关于“对齐”一系列的“某某对齐”操作命令,选中你想查看的,就会在【选定命令的快捷键】一栏中显示其快捷键了 (2)自己整理的使用频率最高的快捷键

2016-09-02 20:27:59 242

angular-filemanager-master

angular-filemanager-master,开源的响应式文件浏览管理器,GitHub网址为https://github.com/joni2back/angular-filemanager

2018-07-05

空空如也

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

TA关注的人

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