#!/bin/bash# configure networkcat >/etc/sysconfig/network-scripts/ifcfg-eth0>/etc/fstabmkdir /etc/yum.repos.d/bak mv /etc/yum.repos.d/Cen* /etc/yum.re... ...
分类:
其他好文 时间:
2018-07-22 20:01:47
阅读次数:
158
#面向对象:特点:类(class)#面向过程:过程(def)#函数式编程:函数(def)#定义函数:def func1():# """test....""" print('in the func1') return 0#定义过程def func2() """test2..........""" pr ...
分类:
其他好文 时间:
2018-07-22 17:04:50
阅读次数:
116
1.首先看一个例子: 情形1输出: 情形2输出: 第二种情况输出对应Test2的初始化列表,直接调用拷贝构造函数初始化test1,省去了调用默认构造函数的过程。所以一个好的原则是,能使用初始化列表的时候尽量使用初始化列表。提高了性能。 2. 除了性能问题之外,有些时场合初始化列表是不可或缺的,以下几 ...
分类:
编程语言 时间:
2018-07-18 14:10:15
阅读次数:
197
1 package test; 2 3 public class test2 { 4 public static void main(String[] args) { 5 int sum = 0; 6 int count = 1; 7 while (count < 100) { 8 if (coun... ...
分类:
编程语言 时间:
2018-07-17 21:41:38
阅读次数:
156
import java.util.ArrayList;import java.util.List;public class Test2 { public static void main(String[] args){ List list = new ArrayList(); list.add("0 ...
分类:
其他好文 时间:
2018-07-14 19:05:25
阅读次数:
140
@Testpublic void test2(){//基本数据类型、包装类-->到String类型的转换,调用String类型的静态方法valueOf()即可int i1 = 12;String str = String.valueOf(i1);//"10"String str1 = String. ...
分类:
其他好文 时间:
2018-07-12 13:22:59
阅读次数:
144
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 from greenlet import greenlet def test1(): print(12) gr2.switch() print(34) gr2.switch() def test2(): print(56) ...
分类:
编程语言 时间:
2018-07-09 11:10:28
阅读次数:
205
语句递归查找父子关系语句 表结构及数据 1.通过根节点遍历子节点 select t.*,LEVEL from Test2 t START WITH t.parentid=0 CONNECT BY PRIOR t.id = t.parentid 2.通过子节点向根节点追溯 select t.*,LEV ...
分类:
数据库 时间:
2018-07-06 17:55:06
阅读次数:
355
public class Test2 { public static void main(String[] s) throws IOException { List<User> list = new ArrayList<User>(); String aa = ""; try { System.ou ...
分类:
其他好文 时间:
2018-07-05 19:44:33
阅读次数:
459
简述 Linux是一套自由加开放源代码的类Unix操作系统,诞生于1991年10月5日(第一次正式向外公布),由芬兰学生Linus Torvalds和后来陆续加入的众多爱好者共同开发完成。 Linux是一个基于POSIX和Unix的多用户、多任务、支持多线程和多CPU的操作系统。它能运行主要的Uni ...
分类:
其他好文 时间:
2018-07-05 12:04:52
阅读次数:
170