欢迎关注本人微信公众号“没有故事的陈师傅”re正则处理正则定义正则表达式是对字符串操作的一种逻辑公式,就是用事先定义好的一些特定字符、及这些特定字符的组合,组成一个“规则字符串”,这个“规则字符串”用来表达对字符串的一种过滤逻辑。常用正则表达式的方法re.compile(编译)pattern.match(从头匹配)pattern.search(匹配一个)pattern.findall(匹配所有)p
分类:
编程语言 时间:
2019-02-25 00:41:56
阅读次数:
185
用的net core版本是2.1,也许在后续的版本中已经修复了这个问题 今天在尝试用net core写demo的时候,发现了这个问题。因为都是使用DI,所以就没有我的网站项目里直接引用一些实现类库,而是放到了同一个目录下,在网站启动的时候用代码去加载进来。然而在实际的运行过程成中发现,指定的dll会 ...
分类:
Web程序 时间:
2019-02-23 17:08:03
阅读次数:
648
id命令:显示用户的真实和有效id选项:-u:仅显示有效UID;-g:仅显示用户的基本组ID;-G:仅显示用户所属的所有组的ID;-n:显示名字而非ID;实例:[root@itxuezhe~]#iduid=0(root)gid=0(root)groups=0(root)[root@itxuezhe~]#iddockeruid=1001(docker)gid=1001(docker)groups=1
分类:
其他好文 时间:
2019-02-22 10:26:11
阅读次数:
166
Difficulty: Easy Problem You are given an array of strings. Two strings and are special equivalent if after any number of moves , S == T. A move consi ...
分类:
其他好文 时间:
2019-02-19 23:36:11
阅读次数:
283
1001 A+B Format (20 分) Calculate a+b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (un ...
分类:
其他好文 时间:
2019-02-19 13:53:16
阅读次数:
210
原文:https://medium.com/building-things-on-the-internet/40e9b2b36148 译文:https://segmentfault.com/a/1190000000414339 在生产环境中,我们可以为 CPU 密集型任务和 IO 密集型任务分别选择 ...
分类:
编程语言 时间:
2019-02-19 10:27:07
阅读次数:
129
一、添加阿里云镜像 1 找到maven的安装目录,conf文件夹下的setting.xml文件 2 打开setting.xml文件,找到mirrors节点添加阿里镜像库地址: 二、配置本地仓库 打开maven安装目录\conf\setting.xml文件。 修改为本地路径:<localReposit ...
分类:
其他好文 时间:
2019-02-16 09:28:51
阅读次数:
244
Algorithm 【leetcode】893. Groups of Special Equivalent Strings https://leetcode.com/problems/groups of special equivalent strings/ 1)problem You are gi ...
分类:
其他好文 时间:
2019-02-15 01:21:29
阅读次数:
219
1,用户查询相关命令id,finger,users,w,who,last,lastlog,groups 本节主要介绍在用户管理中,查询用户的几种常见工具id,finger,w,who,last,lastlog,groups的用法。 用户查询工具的原理:在用户管理中,用户查询是通过几个常用的工具来完成 ...
分类:
系统相关 时间:
2019-02-13 20:54:35
阅读次数:
237