2013年4月3日
摘要: 单个参数的:g = lambda x:x*2print g(3)结果是6多个参数的:m = lambda x,y,z: (x-y)*zprint m(3,1,2)结果是4 阅读全文
posted @ 2013-04-03 15:12 语辰 阅读(185) 评论(0) 推荐(0) 编辑
摘要: map(function,iterable,...) Applyfunctionto every item ofiterableand return a list of the results. If additionaliterablearguments are passed,functionmust take that many arguments and is applied to the items from all iterables in parallel. If one iterable is shorter than another it is assumed to be e. 阅读全文
posted @ 2013-04-03 15:06 语辰 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 33H4F-QG8YV-WVM7G-H3Y7Y-J2T4Q 阅读全文
posted @ 2013-04-03 10:08 语辰 阅读(110) 评论(0) 推荐(0) 编辑