函数式编程: 特点:允许传递的参数是函数,且允许返回一个函数。 由于Python允许使用变量,因此,Python不是纯函数式编程语言,同样的输入可能输出不同,有副作用。纯函数式编程语言没有变量,输入和输出是确定的,无副作用。 1.高阶函数(Higher-order function): 特点:高阶函 ...
分类:
编程语言 时间:
2017-11-13 14:03:45
阅读次数:
156
前言 本文代码浅显易懂,思想深入实用。此属于react进阶用法,如果你还不了解react,建议从文档开始看起。 我们都知道高阶函数是什么, 高阶组件其实是差不多的用法,只不过传入的参数变成了react组件,并返回一个新的组件. A higher-order component is a functi ...
分类:
其他好文 时间:
2017-11-10 18:25:11
阅读次数:
405
源网址http://tech.e2sn.com/oracle-scripts-and-tools/session-snapper内容: If you want to just download Snapper, you can get it from here: http://blog.tanelp ...
分类:
移动开发 时间:
2017-11-10 15:12:09
阅读次数:
259
由于没时间编写,就把几张写的不错的文章摘录整合到一起。原文地址:Python Decorator python decorator心得体会 可爱的 Python: Decorator 简化元编程 Python之美--Decorator深入详解(一) Python Decorators(二):Deco ...
分类:
编程语言 时间:
2017-11-05 23:26:19
阅读次数:
202
We are playing the Guess Game. The game is as follows: I pick a number from 1 to n. You have to guess which number I picked. Every time you guess wron ...
分类:
其他好文 时间:
2017-10-24 16:03:33
阅读次数:
154
1.单词说明: command n. 命令,指令 [k?'mɑ:nd] 单词拼写 名词 单词含义 音标(发音) 提示:着重记忆单词对应的意思,有能力同学最好词性也记忆。 2.词性说明: n v vi vt conj prep pron adj adv 名词 动词 非及物动词 及物动词 连词 介词 代 ...
分类:
其他好文 时间:
2017-10-16 21:51:06
阅读次数:
908
1.CET 4 SCORES>=560 ENTER THE FIRST ENGLISH CLASSS 2.LEARN C LANGUAGE WELL,FINISH<C PRIMER PLUS> 3.GPA REACH 4.0 OR HIGHER 4.BECAME AS THIN AS FLASH 5 ...
分类:
其他好文 时间:
2017-10-10 00:14:21
阅读次数:
158
1.Try my best to learn new knowledge,I hope my GPA will reach 4.0 or higher. 2.Passing CET 4/6 for 540/500.I'm not good at English,but I will try my b ...
分类:
其他好文 时间:
2017-10-09 00:36:51
阅读次数:
197
Goals ought to be reasonable and great ! The detailed information can be listed as bellow: 1.Make GPA higher than 3.8 ; 2.Make CET 4/6 higher than 520 ...
分类:
其他好文 时间:
2017-10-08 20:31:44
阅读次数:
162
There are N children standing in a line. Each child is assigned a rating value. You are giving candies to these children subjected to the following re ...
分类:
其他好文 时间:
2017-10-05 19:36:11
阅读次数:
172