python定义函数用def 关键字声明 # 定义函数 和 调用函数 def fun(n): return n print(fun(2)) ...
分类:
编程语言 时间:
2021-02-03 10:46:15
阅读次数:
0
函数语法 range(start, stop[, step]) 参数说明: start: 计数从 start 开始。默认是从 0 开始。例如range(5)等价于range(0, 5); stop: 计数到 stop 结束,但不包括 stop。例如:range(0, 5) 是[0, 1, 2, 3, ...
分类:
编程语言 时间:
2021-02-03 10:43:16
阅读次数:
0
各种feature的实现 执行shell 处理时间 处理参数 处理文件 logging test 多线程、进程,并发 语言 python groovy scala java C++ C shell go 执行shell, check output groovy a= "ls".execute(); ...
分类:
编程语言 时间:
2021-02-03 10:42:48
阅读次数:
0
简化对象写法 ES6允许再大括号里面,直接写入变量和函数,作为对象的属性和方法。 遮眼法的书写更加简洁 let name = 'study'; let change = function(){ consoel.log('I like study'); } const study = { name, ...
分类:
其他好文 时间:
2021-02-03 10:42:33
阅读次数:
0
VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different le ...
分类:
其他好文 时间:
2021-02-03 10:42:18
阅读次数:
0
// 读取文件base64 编码方式 var readerRes = fs.readFileSync(rp + 'ext_blocks\\userLib\\' + sessionStorage.checkLib + ".zip", "Base64") function base64toBlob(ba ...
分类:
Web程序 时间:
2021-02-03 10:40:28
阅读次数:
0
目的:自动执行,执行完之后立即释放; 立即执行函数 --> 初始化函数 写法(两种写法,效果一样): 1.(function() { })(); 2.(function() { }()) 传参: (function(a,b) { console.log(a); // 1 console.log(b) ...
分类:
其他好文 时间:
2021-02-03 10:39:09
阅读次数:
0
Python中pymssql 的使用操作 在python3.x中,可以使用pymysql来MySQL数据库的连接,并实现数据库的各种操作,本次博客主要介绍了pymysql的安装和使用方法。 PyMySQL的安装 一、.windows上的安装方法: 在python3.6中,自带pip3,所以在pyth ...
分类:
数据库 时间:
2021-02-03 10:33:27
阅读次数:
0
父窗体js $('.mytable').on('click', '.editRow', function () { var table = $('#table_id_example').DataTable(); var rowData = table.rows({selected: true}).d ...
分类:
其他好文 时间:
2021-02-03 10:31:51
阅读次数:
0
Spring Cloud 是目前最火的微服务框架,Feign 作为基础组件之一,在 Spring Cloud 体系中发挥了重要的作用。 一、FeignClient注解 FeignClient注解被@Target(ElementType.TYPE)修饰,表示FeignClient注解的作用目标在接口上 ...
分类:
其他好文 时间:
2021-02-03 10:31:00
阅读次数:
0