摘要: [TOC] lambda, map, filter, reduce lambda 匿名函数 map map(f, iterator) 将f作用于iterator, 返回可迭代对象. 列表生成式 [f(x) for x in iterator] filter filter(condition_f, i 阅读全文
posted @ 2020-03-11 10:50 youqia 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 命名: Use snake_case for variables/functions; CamelCase for classes; CAPS_CASE for constants Ref: http://pep8online.com/ 粘贴代码看是否符合规范 阅读全文
posted @ 2020-03-11 09:23 youqia 阅读(99) 评论(0) 推荐(0) 编辑