发布时间:2015-08-01 11:14:29
本文详细介绍了Python中iterator的概念及原理,以及怎么自定义一个自己的iterator。......【阅读全文】
发布时间:2015-07-30 14:35:24
一、函数的定义:使用def或者“函数定义”语句即可:点击(此处)折叠或打开def hello(name): return 'Hello, ' + name + '!'print hello('world')print hello('Gumby')运行这段程序就会得到一个名为hello的新函数,它可以返回.........【阅读全文】