bif专题

Python学习笔记2(小甲鱼)—— 内置函数BIF

      这里有一个让人“亮瞎眼”的“游戏”开始python的学习。首先我们编写一段代码,来实现这个游戏。编写操作可参考前面的《Python学习笔记1——搭建环境与“Hello World”》这篇文章,网址:http://blog.csdn.net/tongbiaos/article/details/47414155。        这是运行的结果图:        通过代码

python中的四个BIF:filter()、map()、zip()、enumerate()

一,filter() 过滤器 先来看下Python自己的注释如下: help(filter)class filter(object)| filter(function or None, iterable) --> filter object| | Return an iterator yielding those items of iterable for which funct