1. 首页
  2. 数据库
  3. 其它
  4. clj :(类似于Clojure的)Python中的惰性迭代器 源码

clj :(类似于Clojure的)Python中的惰性迭代器 源码

上传者: 2021-02-09 00:43:38上传 ZIP文件 16.43KB 热度 15次
j clj是在Python中与延迟迭代器一起使用的函数的集合。 当您做过多的Clojure并回到Python时,这是一个模块,他们想知道这些distinct , drop-while , cycle , first等在哪里。 安装 pip install clj 用法 例 ; ; Clojure ( println ( count ( distinct ( filter even? ( map inc coll))))) # Python from clj import count , distinct , filter , inc , map even = lambda e : ~ e
下载地址
用户评论