1,'name'=>'test']; $arr1[1]=['id'=>2,'name'=>'test']; $arr3[0]= ['id'=>1,'name'=>'test']; $arr3[1]=['id'=>2,'name'=>'test2']; $arr2 = [0=>['id'=>1,'na... ...
分类:
编程语言 时间:
2018-12-27 13:22:34
阅读次数:
214
[TOC] 多线程 共享全局变量 多线程 共享全局变量 运行结果: 在上面的程序中。 循环五次,每次将 全局变量加一并打印 的值,在 中仅仅打印 的值。在t1线程中执行test1函数,在t2线程中执行test2函数,并在执行t2线程之前,延时一秒中来保证t1线程执行完毕。 列表当作实参传递到线程中 ...
分类:
编程语言 时间:
2018-12-13 13:21:45
阅读次数:
270
通过源码分析一下结果public class Test { public static void main(String[] args) { // test1(); // test2(); test3(); } static void test1() { List ints = new ArrayL... ...
分类:
其他好文 时间:
2018-12-13 11:28:40
阅读次数:
184
docker网络 Docker 允许通过外部访问容器或容器互联的方式来提供网络服务。 端口映射允许外部访问容器 --link 容器互联 容器桥接网络 1.通过--link容器通信,给test2添加一个hosts解析记录 docker run -d --name test2 --link test1 ...
分类:
其他好文 时间:
2018-12-12 13:51:56
阅读次数:
172
重要:java Test2 [参数一] [参数二] ...
分类:
其他好文 时间:
2018-12-11 17:17:28
阅读次数:
168
将代码回到hash为1fbcb7ea3b43df60c639875d2bb68e20b451059e的版本 git checkout 1fbcb7ea3b43df60c639875d2bb68e20b451059e 用下面代码 你还可以将指定版本设置为一个分支 git branch test2 1f ...
分类:
其他好文 时间:
2018-12-11 00:39:39
阅读次数:
150
文章来源:爱可生云数据库 简介 MySQL8.0 开始支持原? DDL(atomic DDL),数据字典的更新,存储引擎操作,写?进制日志结合成了一个事务。在没有原?DDL之前,DROP TABLE test1,test2;如遇到server crash,可能会有test1被drop了,test2没 ...
分类:
数据库 时间:
2018-12-10 13:55:40
阅读次数:
203
小结 make -C make_test2/ 执行某个目录下的Makefile -I dir指定被包含的Makefile所在目录 ,引用某些文件的目录,例如说是 CFLAGS=-c -Wall -I include ,表示引用的引用了这个文件里面的include里面的文件 make -f Makef ...
分类:
其他好文 时间:
2018-12-09 20:07:24
阅读次数:
134
1、asp.net core控制台程序 2、发布 发布前,修改test2.csproj文件(项目名称为test2) 主要添加 <RuntimeIdentifier>centos.7-x64</RuntimeIdentifier> 这句。 会发布在test2\bin\Debug\netcoreapp2 ...
分类:
Web程序 时间:
2018-12-08 20:23:33
阅读次数:
219
<h1>目录1</h1><pre class="prettyprint lang-javascript">function getNowDate() { var date = new Date(); var split = "-"; var year = date.getFullYear(); va ...
分类:
其他好文 时间:
2018-12-08 16:12:51
阅读次数:
122