Description Professor Dumbledore is helping Harry destroy the Horcruxes. He went to Gaunt Shack as he suspected a Horcrux to be present there. He saw ...
分类:
其他好文 时间:
2020-02-20 23:42:33
阅读次数:
76
Given a string, find the longest substring without any repeating characters and return the length of it. The input string is guaranteed to be not null ...
分类:
其他好文 时间:
2020-02-20 22:14:59
阅读次数:
62
key keys * 获取所有的key select 0 选择第一个库 move myString 1 将当前的数据库key移动到某个数据库,目标库有,则不能移动 flush db 清除指定库 randomkey 随机key type key 类型 set key1 value1 设置key get ...
分类:
其他好文 时间:
2020-02-20 13:32:35
阅读次数:
49
远程桌面协议RDP(Remove Desktop Protocol) 通过mstsc客户端远程连接计算机,并对其进行管理等操作。 与TELNET的区别在于,TELNET显示的是远程计算机的命令行窗口,而RDP为该计算机的图形界面,这样显得更加直观。 RDP=TCP+3389端口。 在运行界面输入ms ...
分类:
其他好文 时间:
2020-02-19 18:44:02
阅读次数:
63
Linux的两种安装方式 首先,介绍一下Linux的安装方式,可以是yum安装,也可以是源码包安装。 yum安装:简单方便,不易出错。 源码包安装:有点繁琐,但是服务性能好。 yum 安装 1. 安装 Nginx yum 安装nginx非常简单,就输入一条命令即可。 $ sudo yum -y in ...
分类:
系统相关 时间:
2020-02-19 16:56:18
阅读次数:
114
以下代码将指定目录下的所有文件分类,按照后缀名归类存储 import os import shutil path = './' def foo(): files = os.listdir(path) for f in files: folder = path + f.split('.')[-1] i ...
分类:
编程语言 时间:
2020-02-19 15:27:56
阅读次数:
73
using DotSpatial.Controls; using DotSpatial.Symbology; using GeoAPI.Geometries; using System; using System.Collections.Generic; using System.Drawing; ...
分类:
其他好文 时间:
2020-02-19 13:10:42
阅读次数:
122
接收不定长参数 接受不定长键值对 first normal arg: yasoob another arg through argv: python another arg through argv: eggs another arg through argv: test arg3 == 3 arg ...
分类:
编程语言 时间:
2020-02-18 12:59:04
阅读次数:
77
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right at any p ...
分类:
其他好文 时间:
2020-02-17 22:33:36
阅读次数:
99
在JDK1.8中,Collection以及其子类新加入了removeIf方法,作用是按照一定规则过滤集合中的元素。这里给读者展示removeIf的用法。首先设想一个场景,你是公司某个岗位的HR,收到了大量的简历,为了节约时间,现需按照一点规则过滤一下这些简历。比如这个岗位是低端岗位,只招30岁以下的 ...
分类:
编程语言 时间:
2020-02-17 20:10:07
阅读次数:
490