- 博客(5)
- 资源 (2)
- 收藏
- 关注
转载 正则前面的 (?i) (?s) (?m) (?is) (?im)
原文地址:点击打开链接Q:经常看见的正则前面的 (?i) (?s) (?m) (?is) (?im) 是什么意思?A: 称为内联匹配模式,通常用内联匹配模式代替使用枚举值RegexOptions指定的全局匹配模式,写起来更简洁。 (?i) 表示所在位置右侧的表达式开启忽略大小写模式 (?s) 表示所在位置右侧的表达式开启单行模式。 更改句点字符 (.) 的含义,以使它与每个字符(而不是除 \...
2018-04-25 11:45:36 10422
转载 RPC原理及RPC实例分析
原文地址:点击打开链接在学校期间大家都写过不少程序,比如写个hello world服务类,然后本地调用下,如下所示。这些程序的特点是服务消费方和服务提供方是本地调用关系。 public class Test { public static void main(String[] args) { HelloWorldService h...
2018-04-16 13:52:24 212
转载 伪随机数算法
今天看到Random() 中的nextInt()方法采用的是线性同余法;同余法(Congruential method)是很常用的一种随机数生成方法,在很多编程语言中有应用,最明显的就是java了,java.util.Random类中用的就是同余法中的一种——线性同余法(Linear congruential method),除此之外还有乘同余法(Multiplicative congruenti...
2018-04-09 17:00:52 2221
转载 Python新手写出漂亮的爬虫代码
BeautifulSoup神器Python一个第三方库bs4中有一个BeautifulSoup库,是用于解析html代码的,换句话说就是可以帮助你更方便的通过标签定位你需要的信息。这里只介绍两个比较关键的方法:1、find方法和findAll方法: 首先,BeautifulSoup会先将整个html或者你所指定的html代码编程一个BeautifulSoup对象的实例(不懂对象和实例不要紧,你只要...
2018-04-09 14:20:52 789
转载 OpenJDK 源码下载网站bug
获取OpenJDK源码大致有两种方式,其中一种是通过Mercurial代码版本管理工具从Repository中直接取得源码http://hg.openjdk.java.net第二种就是从网站上下载 :http://jdk7.java.net/source.html(这个地址好像不能用了)还有个就是http://download.java.net/openjdk/jdk7 jdk7后面jdk版本可...
2018-04-09 14:18:05 248
官网上的luncence3.5.0的windowsZIP
2015-10-08
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人