自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

楼上小宇_home

Write the code, Change the world

  • 博客(9)
  • 资源 (11)
  • 收藏
  • 关注

原创 linux系统下以存储从大到小并以K,M,G为单位的方式查看当前目录下的文件信息

前言ls命令ls -als -llldu命令du -sdu -s *du -s * | sort -nr我的DIY_Bash在linux任意位置都可以使用这个目录下的脚本注意前言最近几乎大部分工作都在linux上进行的,发现在工作过程中经常要查看当前目录下的文件大小,但是每次都是用ls命令每次都是以字节形式显示的,看起来特别不爽。于是开始了再l...

2018-04-06 10:22:12 14956 2

原创 leetcode Longest Substring with At Most Two Distinct Characters 滑动窗口法

题目解析代码如下题目解析这一题是一道会员的题目,题目介绍如下:Given a string, find the length of the longest substring T that contains at most 2 distinct characters.For example, Given s = “eceba”,T is "ece" which...

2018-04-29 14:48:22 5327

原创 leetcode 3. Longest Substring Without Repeating Characters 最长非重复子串的长度 滑动窗口法

题目链接根据我们之前介绍的滑动窗口法的解法: 滑动窗口法详解 leetcode 438. Find All Anagrams in a String 滑动窗口法 这题,我们不难解决,使用之前的模板。可得如下解法from collections import defaultdictclass Solution: def lengthOfLongestSubstrin...

2018-04-29 14:17:20 5305

原创 leetcode 438. Find All Anagrams in a String 滑动窗口法

题目链接 解析主要使用滑动窗口法解题,需要好好体会的是中间的两个判断couter的用法,这里很巧妙。 如果想了解更多的滑动窗口法内容,看这里: 滑动窗口法详解代码from collections import defaultdictclass Solution: def findAnagrams(self, s, p): """ ...

2018-04-27 09:56:38 5605

原创 python的知识点注意事项

元组中只包含一个元素时,需要在元素后面添加逗号a = (1)b = (2,)print(a)print(b)1 (2,)output:列表的排序(从到到小)selected_titles = sorted(selected_titles, key = lambda t: -eval(t[1]))字典的排序(从大到小)from ope...

2018-04-25 09:28:18 5315

原创 滑动窗口法详解

算法目的前言一个经典的问题代码如下总结参考资料算法目的该算法展示了如何将嵌套for循环在少数问题中转换为单个for循环,从而减少了时间的复杂性。前言一个经典的问题给一组大小为n的整数数组,计算长度为k的子数组的最大值 我们希望的结果如下Input : arr[] = {100, 200, 300, 400} k...

2018-04-23 09:11:52 47277 1

原创 vim 使用记录

Vim 取消缩进gg v shift加g =取消高亮vim nohvim 替换比如替换abc成abd%s/abc/abd/g在vim中出现^M是由于win每行结尾为\r\n,而linux只有一个\n单个文档直接使用:%s/^M//g多个文档使用sed: 把win文档转换成linux下文档:find ./ -type f pr...

2018-04-12 11:37:51 5335

原创 求字符串全排列 python实现

算法思想具体代码参考算法思想输入一个字符串,打印这个字符串中字符的全排列。 eg: 输入:abc 输出:abc acb bac bca cab cba 思路:将求字符串的全排列分解为两步: 第一步是确定第一个位置的字符,就是第一个位置与后边的所有字符进行交换。 第二步,就是对除了第一个位置的后边所有位置的字符进行相同处理;直至剩下一个字符,打印; 具体的算法流...

2018-04-07 10:53:04 15614 4

原创 如何学习数据挖掘和数据科学的7个步骤

前言概括1 学习语言2 工具:数据挖掘,数据科学和可视化软件3 教科书4 教育:网络研讨会,课程,证书和学位5 数据6 比赛7 互动:会议,团体和社交网络more前言最近一直一再学习数据挖掘的相关知识,这是一篇国外的文章,我添加了自己的一些理解,大概的翻译过来,供大家一起学习参考。概括语言:学习R,Python和SQL 工具:了解如何使用数据挖掘...

2018-04-06 11:29:43 8547

银行笔试-计算机知识部分_sty修改.pdf

银行笔试-Java基础知识必备,java常用基础知识,java学习资料

2019-10-05

item_seleted

QT中使用rubberband橡皮筋等方法进行选中多个物体,展示效果如下: https://img-blog.csdnimg.cn/20190122112611529.gif

2019-01-22

python画小猪佩奇

用python快速画出小猪佩奇,具体的效果展示可以看这里:https://img-blog.csdnimg.cn/20190120103016165.gif

2019-01-20

Box2D_v2.1.2已经编译好的文件

Box2D is a 2D physics engine for games. For help with Box2D, please visit http://www.box2d.org. There is a forum there where you may post your questions.

2018-11-07

Box2D_v2.1.2

Box2D_v2.1.2 Box2D is a 2D physics engine for games. For help with Box2D, please visit http://www.box2d.org. There is a forum there where you may post your questions.

2018-11-07

2018 Google kickstart Problem A. Planet Distance 输入数据

2018 Google kickstart Problem A. Planet Distance 输入数据

2018-05-27

笨方法学python3 Learn Python 3 the Hard Way

笨方法学Python号称最经典的python入门书籍现在出python3版本的了,你还不快来学? 英文高清带书签版本 You Will Learn Python 3! Zed Shaw has perfected the world’s best system for learning Python 3. Follow it and you will succeed—just like the millions of beginners Zed has taught to date! You bring the discipline, commitment, and persistence

2018-04-06

用python进行数据分析 第二版 Python for Data Analysis, 2nd Edition

用python进行数据分析 第二版 英文高清带书签版本 Get complete instructions for manipulating, processing, cleaning, and crunching datasets in Python. Updated for Python 3.6, the second edition of this hands-on guide is packed with practical case studies that show you how to solve a broad set of data analysis problems effectively. You’ll learn the latest versions of pandas, NumPy, IPython, and Jupyter in the process. Written by Wes McKinney, the creator of the Python pandas project, this book is a practical, modern introduction to data science tools in Python. It’s ideal for analysts new to Python and for Python programmers new to data science and scientific computing. Data files and related material are available on GitHub. Use the IPython shell and Jupyter notebook for exploratory computing Learn basic and advanced features in NumPy (Numerical Python) Get started with data analysis tools in the pandas library Use flexible tools to load, clean, transform, merge, and reshape data Create informative visualizations with matplotlib Apply the pandas groupby facility to slice, dice, and summarize datasets Analyze and manipulate regular and irregular time series data Learn how to solve real-world data analysis problems with thorough, detailed examples

2018-04-06

SQL与关系数据库理论:如何编写健壮的SQL代码 第二版

对于数据库管理与开发人员来说,使用 SQL 时会到处遭遇困难和陷阱。只有深入理解关系理论,并将理论应用于实践,才能避免这些困难和陷阱。 《SQL 与关系数据库理论:如何编写健壮的 SQL 代码(第 2 版)》作者深入阐述了关系理论,以严谨的态度对 SQL 与关系理论进行详尽而深入的对比、讨论和思考,并且使用大量示例和练习展示怎样才能将关系理论正确地应用到 SQL 中,得到健壮的 SQL 代码,为高级数据库开发人员提供大量常见 SQL 问题的解决之道。

2018-02-26

学习 Go 语言(Golang)

学习 Go 语言(Golang),简单易懂的Go语言教程,让你分分钟学会GO语言

2018-01-26

nginx的1.12.2 下 载

nginx-1.12.2的下载应用,免安装,即可运行。 nginx-1.12.2的下载应用,免安装,即可运行

2018-01-26

空空如也

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

TA关注的人

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