正则表达式 正则表达式(regular expression)描述了一种字符串匹配的模式(pattern),可以用来检查一个串是否含有某种子串、将匹配的子串替换或者从某个串中取出符合某个条件的子串等。下面来介绍一些基本的规则 1. 正则基本语法 首先有两个特殊的符号 和`$`,他们分别表示一个字符串 ...
分类:
其他好文 时间:
2019-02-25 18:07:14
阅读次数:
187
题面: C. Team Tic Tac Toe Input ?le: standard input Output ?le: standard output Time limit: 1 second Memory limit: 256 megabytes Farmer John owns 26 cow ...
分类:
其他好文 时间:
2019-02-25 01:02:25
阅读次数:
177
今天发现一段老外写的奇怪的CSS代码,第一次接触双短横CSS代码,这里跟大家分享一下: 双短横在这里是什么意思,希望高手可以留言探讨一下。 ...
分类:
Web程序 时间:
2019-02-24 01:15:36
阅读次数:
287
technology stack 技术栈: 产品实现上依赖的软件基础组件, 包括 1、 系统 2、 中间件 3、 数据库 4、 应用软件 5、 开发语言 6、 框架 https://en.wikipedia.org/wiki/Solution_stack From Wikipedia, the fr ...
分类:
其他好文 时间:
2019-02-17 12:46:41
阅读次数:
193
Getting Started with Word2Vec 1. Source by Google Project with Code: https://code.google.com/archive/p/word2vec/ Blog: "Learning Meaning Behind Words" ...
分类:
其他好文 时间:
2019-02-16 13:37:44
阅读次数:
141
Shell学习之条件测试 目录 逻辑测试 文件测试 数值比较 字符串比较 逻辑测试 文件测试 例子:备份Mysql数据库,业务代码没有完善 数值比较 例子 字符串比较 例子 所有表达式 ...
分类:
系统相关 时间:
2019-02-13 00:38:33
阅读次数:
255
安装所需环境 Nginx 是 C语言 开发,建议在 Linux 上运行,当然,也可以安装 Windows 版本,本篇则使用 CentOS 7 作为安装环境。 一. gcc 安装安装 nginx 需要先将官网下载的源码进行编译,编译依赖 gcc 环境,如果没有 gcc 环境,则需要安装: 二. PCR ...
分类:
系统相关 时间:
2019-02-12 15:54:27
阅读次数:
263
https://docs.python.org/2/library/re.html re.match(pattern, string, flags=0) 尝试从字符串的起始位置匹配一个模式 re.search(pattern, string, flags=0) 扫描整个字符串并返回第一个成功的匹配 ...
分类:
编程语言 时间:
2019-02-11 21:28:27
阅读次数:
152
Given an input string (s) and a pattern (p), implement regular expression matching with support for '.' and '*'. The matching should cover the entire ...
分类:
其他好文 时间:
2019-02-11 01:00:12
阅读次数:
199
2019/02/08正则表达式Regular Expression掌握特殊符号* (0, +00) # 贪婪匹配,按最多的匹配>>> re.findall('alex*', 'sddgljalexdhgb')['alex']>>> re.findall('alex*', 'sdghshalexxxx ...
分类:
编程语言 时间:
2019-02-08 19:58:26
阅读次数:
176