没有合适的资源?快使用搜索试试~ 我知道了~
itertools.js:Python很棒的itertools stdlibJavaScript端口
共32个文件
js:14个
yml:3个
sh:3个
需积分: 9 0 下载量 49 浏览量
2021-04-30
00:39:25
上传
评论
收藏 146KB ZIP 举报
温馨提示
Python很棒的标准库JavaScript端口。 用法示例: >>> import { izip , cycle } from 'itertools' ; >>> >>> const xs = [ 1 , 2 , 3 , 4 ] ; >>> const ys = [ 'hello' , 'there' ] ; >>> for ( const [ x , y ] of izip ( xs , cycle ( ys ) ) ) { >>> console . log ( x , y ) ; >>> } 1 'hello' 2 'there' 3 'hello' 4 'there' 关于参数顺序 在Python中,许多itertools都将函数作为参数。 在这些的JS端口中,我们最初将这些顺序保持不变以紧贴Python函数,但实际上,翻转它们实际上更为实用,因此该函数成为第二个参数
资源推荐
资源详情
资源评论
收起资源包目录
itertools_js-master.zip (32个子文件)
itertools.js-master
bin
bump.sh 657B
build.sh 2KB
publish.sh 1KB
.babelrc 180B
flow-typed
npm
flow-bin_v0.x.x.js 188B
rimraf_v2.x.x.js 494B
jest_v22.x.x.js 18KB
.flowconfig 281B
package.json 3KB
.eslintrc.json 2KB
.github
dependabot.yml 161B
workflows
test.yml 866B
stale.yml 1KB
.prettierrc 130B
.importsortrc 66B
LICENSE 1KB
src
utils.js 1KB
index.js 824B
more-itertools.js 7KB
builtins.js 9KB
__tests__
itertools.test.js 11KB
more-itertools.test.js 8KB
builtins.test.js 10KB
custom.test.js 2KB
itertools.js 13KB
custom.js 2KB
types.js 144B
.gitignore 30B
CHANGELOG.md 1KB
.envrc 44B
README.md 28KB
yarn.lock 274KB
共 32 条
- 1
资源评论
ywnwx
- 粉丝: 26
- 资源: 4624
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功