技术专区
-
Java面向对象—封装、继承、多态
Java面向对象—封装、继承、多态 在对面向对象的特征进行分析之前,先让我们来了解一下什么是面向对象。 面向对象与面向过程: 面向过程:是一种以过程为中心的编程思想,面向过程的编程语言包括:C、Fortran、Pasca…
-
java 并发编程规约
Rule 1. 【强制】创建线程或线程池时请指定有意义的线程名称,方便出错时回溯 1)创建单条线程时直接指定线程名称```Thread t = new Thread(); t.setName("cleanup-thread"); ``` 2) 线程池则使用guava或自行封装…
-
Beware What You Read On The Web About OBIEE
by Kurt Wolff It may be strange to be writing this with the intention of posting to a blog, but I thought someone should step back a minute and issue a few words of warning about information that can…
-
How Do I Reset A Lost Weblogic Admin User Password?
by Shiva Molabanti You installed OBIEE 11G and you did not write down the Weblogic Domain admin password, or you’ve had it installed for a while and can’t remember what the password is to get into th…
-
python基础——超类&反射&装饰器&生成器
一、超类 1.1 什么时候用到超类?如果子类需要复用父类的代码(属性、代码)时,需要通过超类实现 class A: class_name = "A" # 类的属性 def __init__(self, name, age): self.name = name # 实例的属性 self.age …
-
linux 中sed命令的保护模式b选项
001、 (base) :/home/test2# cat a.txt ## 测试数据 1 2 3 k 4 5 6 7 k 8 9 10 (base) :/home/test2# sed '/k/{n;d}' a.txt ## 删除匹配k之后的一行 1 2 3 k 5 6 7 k 9 10 (base) :/home/test2# cat a.txt 1 2 3 …
-
linux中sed命令删除匹配特定字符之间的数据
001、 (base) :/home/test2# ls a.txt (base) :/home/test2# cat a.txt ## 测试数据 01 02 AAA 03 04 05 BBB 06 07 08 CCC 09 10 (base) :/home/test2# sed '/AAA/,/BBB/d' a.txt ## 删除匹配AAA和BBB之间的数据 …
-
linux 中 sed = 选项在每一行之前插入编号
001、 (base) :/home/test4# ls a.txt (base) :/home/test4# cat a.txt ## 测试数据 This is 1 This is 2 This is 3 This is 4 This is 5 (base) :/home/test4# sed = a.txt ## 在每一行之前插入编号 1 This is 1…
-
linux 中 sed N选项将两行合并为一行处理
001、 (base) :/home/test2# ls a.txt (base) :/home/test2# cat a.txt 1 2 3 4 5 6 7 8 9 10 (base) :/home/test2# cat a.txt | sed 'N; s//n//t/' ## 以两行为单位,将换行符替换为制表符 1 2 3 4 5 6 7 8 9 10…
-
linux 中sed命令删除匹配字符之后的若干行
001、 (base) :/home/test2# cat a.txt ## 测试数据 1 2 3 k 4 5 6 7 k 8 9 10 (base) :/home/test2# sed '/k/, +2{/k/b; d}' a.txt ## 删除匹配k之后的两行 1 2 3 k 6 7 k 10 (base) :/home/test2# sed '/k/, +1…