1 数组的定义 1.1 数字数组 1. 常规定义 2. 特殊形式 在for循环中,也可以直接声明并使用 1.2 字符串数组 1. 常规定义 2. 特殊形式 此时数组的元素是以空格为间隔的 1.3 备注: 在使用形如“str[0]=1”定义数组是,数组的下标值可以不是连续的正整数,元素的顺序按照下标的 ...
分类:
编程语言 时间:
2018-11-19 22:38:56
阅读次数:
268
n=10a=mx.nd.ones((1000,1000))b=mx.nd.ones((6000,6000),gpu_device)tic=time.time()c=do(a,n)wait(c)print(‘TimetofinishtheCPUworkload:%fsec‘%(time.time()-tic))d=do(b,n)wait(d)print(‘Timetofini
分类:
Web程序 时间:
2018-11-14 19:47:46
阅读次数:
169
Sliding window Hashset Loop through every element inside the string. If the current char is not inside the hashset, push the char into the hashset and ...
分类:
其他好文 时间:
2018-11-10 15:04:19
阅读次数:
189
#基础篇幅:线程基础知识、并发安全性、JDK锁相关知识、线程间的通讯机制、JDK提供的原子类、并发容器、线程池相关知识点#高级篇幅:ReentrantLock源码分析、对比两者源码,更加深入理解读写锁,JAVA内存模型、先行发生原则、指令重排序#环境说明:idea、java8、maven#第一章并发简介##01课程简介为什么要学习并发编程?方便实际开发面试课程特点适合群体##02什么是并发编程并发
分类:
编程语言 时间:
2018-11-09 12:15:04
阅读次数:
204
今天(2018-11-05),同事反馈有一个数据库输入账号密码后连接失败,提示 ORA-00257: archiver error. Connect internal only, until freed。 当时的解决思路如下记录所示: 1、使用同事提供的账号密码,重新登录数据库 [root@loca ...
分类:
其他好文 时间:
2018-11-05 20:07:21
阅读次数:
206
George took sticks of the same length and cut them randomly until all parts became at most 50 units long. Now he wants to return sticks to the origina ...
分类:
其他好文 时间:
2018-11-05 01:15:31
阅读次数:
144
About RMAN Block Compression for Backup Sets
分类:
其他好文 时间:
2018-11-04 19:21:42
阅读次数:
144