一、sed上 grep工具功能只能实现查找,不能把查找的内容替换。 sed本身是一个管道命令,主要是以行为单位进行处理,可以将数据行进行查找、删除、替换字符或字符串、调换字符串位置、直接修改文件内容等特定工作,针对文档的行来操作,例如.txt。 [root@davery ~]# mkdir sed[ ...
分类:
系统相关 时间:
2018-04-26 21:06:32
阅读次数:
767
算法易错点 $FFT$ 1.注意精度,以及是否取整 2.注意$complex$类不要写错,复数乘法是这样的: splay 1.注意$get$写法 2.注意rotate中son的写法,不要写错 cpp void rotate(int pos){ int f=fa[pos],ff=fa[f],son=g ...
分类:
其他好文 时间:
2018-04-26 01:11:32
阅读次数:
223
Angel was caught by the MOLIGPY! He was put in prison by Moligpy. The prison is described as a N * M (N, M <= 200) matrix. There are WALLs, ROADs, and ...
分类:
其他好文 时间:
2018-04-24 21:54:53
阅读次数:
179
We will learn how to convert variable arguments by using rest operator in JavaScript. Scss "$shadows..." the same as "...shadows" in Javascript. inter ...
分类:
编程语言 时间:
2018-04-24 17:29:42
阅读次数:
200
class ArithmeticFunction { public static int arithmetic(int a, int b, String operator) { int result=0; switch(operator){ case "add": result=a+b; case ...
分类:
编程语言 时间:
2018-04-24 14:56:34
阅读次数:
111
BZOJ_5015_[Snoi2017]礼物_矩阵乘法 Description 热情好客的请森林中的朋友们吃饭,他的朋友被编号为 1~N,每个到来的朋友都会带给他一些礼物:。其中,第 一个朋友会带给他 1 个,之后,每一个朋友到来以后,都会带给他之前所有人带来的礼物个数再加他的编号的 K 次方那么多 ...
分类:
其他好文 时间:
2018-04-21 17:36:54
阅读次数:
131
题目链接:http://poj.org/problem?id=1456 题目大意: 有N件商品,分别给出商品的价值和销售的最后期限,只要在最后日期之前销售处,就能得到相应的利润,并且销售该商品需要1天时间。 问销售的最大利润。 我开始的代码:(贪心策略有问题,因为我当时以为过期时间短的商品要优先卖掉 ...
分类:
其他好文 时间:
2018-04-21 15:24:31
阅读次数:
147
第十一章 使用类 1、操作符函数的格式:operator op(argument-list)。op是将要重载的操作符。 2、操作符重载函数的两种调用方式:①函数表示法:C=A.operator+(B);A、B、C都是类对;②操作符表示法:C=A+ B;操作符左侧的对象A是调用对象,操作符右边的对象B ...
分类:
编程语言 时间:
2018-04-20 17:51:09
阅读次数:
194
错误提示如下: operator (>) 表示这个运算符 (>) 有问题。 打开对应的emitter.js文件,可以看到有段es6的语法不解析。 我们需要在配置文件webpack.base.conf.js把这个文件加入到babel-loader的解析规则中 这样再执行打包命令就正常啦! ...
分类:
Web程序 时间:
2018-04-20 13:28:11
阅读次数:
1451
```python
from numpy import *
from os import listdir
import operator def createDataSet(): group = array([[1.0, 1.1], [1.0, 1.0], [0, 0], [0, 0.1]]) la... ...
分类:
其他好文 时间:
2018-04-20 00:16:23
阅读次数:
195