原文转自:https://zhidao.baidu.com/question/1046040541327493019.html 1.Linux下目录复制:本机->远程服务器 scp -r /home/shaoxiaohu/test1 zhidao@192.168.0.1:/home/test2 #t ...
分类:
Web程序 时间:
2017-06-26 19:56:20
阅读次数:
132
string string string in function test: string string string leave function test. string string string in function test2: string string string leave fu ...
分类:
Web程序 时间:
2017-06-25 15:30:35
阅读次数:
201
os模块 print(os.getcwd())#取当前工作目录 print(os.chdir(r"e:\byz_code\day2"))#更改当前目录 print(os.mkdir("test1"))#创建文件夹 print(os.makedirs(r"test1\test2"))#递归创建文件夹, ...
分类:
编程语言 时间:
2017-06-24 11:23:59
阅读次数:
184
这里创建了两个greenlet协程对象,gr1和gr2,分别对应于函数test1()和test2()。使用greenlet对象的switch()方法,即可以切换协程。上例中,我们先调用”gr1.switch()”,函数test1()被执行,然后打印出”12″;接着由于”gr2.switch()”被调 ...
分类:
编程语言 时间:
2017-06-22 23:48:51
阅读次数:
245
package zxd.work615; import java.util.ArrayList;import java.util.Date;import java.util.List; public class Test2 {public static void main(String[] args ...
分类:
其他好文 时间:
2017-06-15 19:38:58
阅读次数:
126
/** * 一球从100米高度自由落下,每次落地后反跳回原高度的一半;再落下,求它在 第10次落地时,共经过多少米?第10次反弹多高? * */ public class Test2 { public static void main(String[] args) { double num = 10... ...
分类:
其他好文 时间:
2017-06-15 00:38:30
阅读次数:
194
这一章节我们来讨论一下线程中断(interrupt)。1.什么是线程中断(interrupt)?就是在多线程执行的时候,我们给线程贴上一个中断的标记。可是不要求线程终止。 2.样例:中断的样例:package com.ray.ch17; public class Test2 { public sta ...
分类:
编程语言 时间:
2017-06-12 18:12:59
阅读次数:
150
对以下使用魔术方法和不适用魔术方法运行时间进行比较使用魔术方法test1.php: name; }}$i = 0;while ( $iname;}不使用魔术方法test2.php name;}检测 time php test1.phptime php test2.php结果 test1.phprea... ...
分类:
编程语言 时间:
2017-06-10 22:26:50
阅读次数:
211
本文分析Mysql中简单查询,通过explain语句进行分析,并给出在Navicat中可使用的完整示例 一、explain介绍 对sql语句执行explain(explain select t.mc,t.cj from test2 t where t.id =1)返回结果: table | type ...
分类:
数据库 时间:
2017-06-09 19:20:59
阅读次数:
262
默认情况下,内部元素(如:input)的宽度或高度,是不会包含元素的边框和内边距的,这是就需要使用 box-sizing 属性设置该元素。 box-sizing 是 CSS3 的属性,可以设置以上值: content-box: 元素 size 不包含 border 和 padding,默认值。 bo... ...
分类:
其他好文 时间:
2017-06-03 20:54:43
阅读次数:
187