- 博客(3)
- 收藏
- 关注
原创 python 函数 详解(一)
1 def is executable code. Python functions are written with a new statement, the def. Unlike functions in compiled languages such as C, def is an executable statement— your function does not exist u
2013-04-05 12:01:36
1508
原创 python 函数参数传递
Python’s pass-by-assignment scheme isn’t quite the same as C++’s reference parameters option, but it turns out to be very similar to the C language’s argument-passing model in practice: • Immutable
2013-04-04 11:27:39
642
原创 node.js 数组性能比较
当数组元素的个数为100000时,删除前10000个元素, shift性能较高: shitf用时0ms,而delete用了403ms; 当数组元素的个数为1000000时,删除前10000个元素, delete性能较高: shitf用了98105ms,deletef用时4396ms delete删除相同数目的元素,所用时间居然跟数组长度成正比! 还是pop
2013-04-02 15:39:23
2805
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人