python精简总结

lambda表达式 单行函数

http://www.cnblogs.com/BeginMan/p/3178103.html


python生成器 带迭代函数的方法,可以迭代的方法

next()或send(msg)会对上一次的yield xxx表达式赋值

每次调用next()或send(msg)会执行到1个yiled片段终止并返回yiled关键字后的值

http://blog.163.com/l_greatsea/blog/static/2049860442013220113640476/

猜你喜欢

转载自blog.csdn.net/u010181847/article/details/64905882