nimpykot:将Python Kotlin的某些功能移植到Nim

时间:2021-02-02 16:51:10
【文件属性】:
文件名称:nimpykot:将Python Kotlin的某些功能移植到Nim
文件大小:154KB
文件格式:ZIP
更新时间:2021-02-02 16:51:10
kotlin python library nim nimlang NimPyKot 将某些Python / Kotlin功能移植到Nim。 安装 $ nimble install pykot 要安装最新的开发版本,请发出以下命令: $ nimble install " https://github.com/jabbalaci/nimpykot@#head " 使用nimble uninstall pykot ,可以删除软件包。 API文档 参见这里: : 笔记 该项目的灵感来自 。 样品 取一个整数并将其取反。 结果也必须是整数。 例如:1977→7791。 import unicode import pykot/converters proc reverse_number (n: int ) : int = n. toStr (). reversed (). toInt () let n = 2018 echo n # 2018 echo reverse_number (n) # 8102 有关更多示例,请参见目录。
【文件预览】:
nimpykot-master
----.gitignore(69B)
----src()
--------pykot()
--------pykot.nim(3KB)
----.travis.yml(351B)
----samples()
--------.gitignore(15B)
--------reverse_number.nim(151B)
--------config.nims(37B)
----LICENSE(1KB)
----config.nims(34B)
----README.md(993B)
----tests()
--------tfs.nim(8B)
--------tpykot.nim(2KB)
--------tweb.nim(8B)
--------tfunctional.nim(1KB)
--------tprocess.nim(481B)
--------tjsystem.nim(126B)
--------config.nims(36B)
--------teuler.nim(315B)
--------README.md(114B)
--------ttypes.nim(148B)
--------tconsole.nim(8B)
--------tpretty.nim(309B)
--------tstrings.nim(2KB)
--------tconverters.nim(1KB)
--------tjrandom.nim(223B)
----build.py(7KB)
----pykot.nimble(232B)
----docs()
--------euler.html(32KB)
--------pretty.html(31KB)
--------strings.html(62KB)
--------jtimes.html(33KB)
--------converters.html(44KB)
--------types.html(30KB)
--------fs.html(35KB)
--------jsystem.html(31KB)
--------pykot.html(43KB)
--------theindex.html(44KB)
--------functional.html(45KB)
--------process.html(32KB)
--------web.html(31KB)
--------index.html(44KB)
--------console.html(33KB)
--------jrandom.html(32KB)

网友评论