码迷,mamicode.com
首页 >  
搜索关键字:generator functions    ( 4426个结果
php中的匿名函数和闭包(closure)
一:匿名函数 (在php5.3.0 或以上才能使用) php中的匿名函数(Anonymous functions), 也叫闭包函数(closures), 允许指定一个没有名称的函数。最常用的就是回调函数的参数值。(http://php.net/manual/zh/functions.anonymo....
分类:Web程序   时间:2014-08-06 17:32:31    阅读次数:248
Javascript eval()函数 基础回顾
如果您想详细了解eval和JSON请参考以下链接:eval :https://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/Global_Functions/EvalJSON:http://www.json.org/eval函数的工作原...
分类:编程语言   时间:2014-08-06 17:18:41    阅读次数:229
Python yield 使用浅析 ----以裴波那契数列生成为例
您可能听说过,带有 yield 的函数在 Python 中被称之为 generator(生成器),何谓 generator ? 我们先抛开 generator,以一个常见的编程题目来展示 yield 的概念。 如何生成斐波那契數列 斐波那契(Fibonacci)數列是一个非常简单的递归数列,除第一个和第二个数外,任意一个数都可由前两个数相加得到。用计算机程序输出斐波那契數列的前 N 个数是一...
分类:编程语言   时间:2014-08-06 14:51:01    阅读次数:307
callback
What about the callback in Unigine?Any function from system, world or editor scripts can be called in a C++ code. UnigineScript functions that are cal...
分类:其他好文   时间:2014-08-06 01:28:50    阅读次数:313
My Vimrc
""""""""""""""""""""""""""""""" functions"""""""""""""""""&q
分类:其他好文   时间:2014-08-04 20:52:22    阅读次数:225
python生成器
yield_atom::="("yield_expression")"yield_expression::="yield"[expression_list]在Python中带有yield的函数被称之为generator(生成器),简单地讲,yield的作用就是把一个函数变成一个generator。我们用生成斐波那契数列说明:>>>deffab(max): n,a,b=0,0,1 while..
分类:编程语言   时间:2014-08-04 18:16:48    阅读次数:243
TommySite Build Record
准备工作 NodeJS(NPM) Grunt & Bower: npm install -g grunt-cli bower(if fail, use sudo) npm install -g generator-angular yo angular npm install bower install execute grunt tasks like: grunt serve...
分类:其他好文   时间:2014-08-04 14:47:27    阅读次数:279
select,iocp,epoll,kqueue及各种I/O复用机制
首先,介绍几种常见的I/O模型及其区别,如下: blocking I/O nonblocking I/O I/O multiplexing (select?and?poll) signal driven I/O (SIGIO) asynchronous I/O (the POSIX?aio_functions) blocking I/O? 这...
分类:其他好文   时间:2014-08-04 14:47:17    阅读次数:241
黄聪:wordpress后台加载ajax.googleapis.com导致打开速度很慢的解决方案
打开wordpress后台,发现很卡,通过开发者工具看到是因为加载http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/themes/smoothness/jquery-ui.css这个元素导致的。解决方案:在functions.php里面添加如下...
分类:Windows程序   时间:2014-08-03 20:25:15    阅读次数:259
关于mysql函数GROUP_CONCAT
GROUP_CONCAT()是MySQL数据库提供的一个函数,通常跟GROUP BY一起用,具体可参考MySQL官方文挡:http://dev.mysql.com/doc/refman/5.0/en/group-by-functions.html#function_group-concat。语法:G...
分类:数据库   时间:2014-08-03 12:27:45    阅读次数:361
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!