在Boostrap里面建一个方法(按规则命名的函数都会被自动执行) 放在application目录下common目录,新建文件命名为functions.php,把全局的函数写在这个文件中,就可以实现自动加载全局使用了~ ...
分类:
其他好文 时间:
2017-10-16 16:50:22
阅读次数:
137
中文参考文档:http://python.usyiyi.cn/translate/python_352/library/functions.html abs(x) #返回一个数的绝对值。参数可以是整数或浮点数。如果参数是一个复数,则返回其大小 all(iterable) #如果iterable(可迭 ...
分类:
编程语言 时间:
2017-10-16 11:11:57
阅读次数:
241
操作过程 vim /etc/bashrc 在结尾添加 !!! 如果使用的是微软Edge浏览器,注意不要复制,有格式问题。推荐使用Firefox、Chrome等浏览器查看。 /etc/bashrc 是什么? # /etc/bashrc # System wide functions and alias ...
分类:
其他好文 时间:
2017-10-14 19:50:55
阅读次数:
197
题目: Problem Description It is well known that a human gene can be considered as a sequence, consisting of four nucleotides, which are simply denoted b ...
分类:
其他好文 时间:
2017-10-12 20:36:12
阅读次数:
236
参考资料:https://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html#function_unix-timestamp UNIX_TIMESTAMP() :returns a Unix timestamp (seconds ...
分类:
数据库 时间:
2017-10-09 12:03:38
阅读次数:
197
Symbols and ops generation: Work estimate: - Implement all major built-in ops in GLSL (340+ functions) - Implement a GLSL backend to replace LLVM_Util ...
分类:
其他好文 时间:
2017-10-09 02:10:26
阅读次数:
211
参考资料:http://docs.oracle.com/database/122/SQLRF/Functions.htm#SQLRF006 Single-row functions return a single result row for every row of a queried table ...
分类:
数据库 时间:
2017-10-08 13:02:19
阅读次数:
214
1. 官方介绍 OpenFaaS (Functions as a Service) is a framework for building serverless functions with Docker which has first class support for metrics. Any ...
分类:
其他好文 时间:
2017-10-08 11:24:05
阅读次数:
246
函数 调用函数: Python内置了很多有用的函数,我们可以直接调用。要知道函数的具体信息,可以查看python官网的文档:https://docs.python.org/3/library/functions.html。也可以在交互式命令行通过help(函数名称)查看函数的具体信息。 调用函数的时 ...
分类:
编程语言 时间:
2017-10-06 23:10:55
阅读次数:
276
let, const, class, extends, super, arrow functions, template string, destructuring, default, rest arguments,import export 1.let const let就是局部变量 const就 ...
分类:
其他好文 时间:
2017-10-06 21:19:30
阅读次数:
124