OEIS的命令行接口。
oeis-cli的Python项目详细描述
#oeis命令行 整数序列在线百科全书的命令行接口。
##安装
` $ pip install oeis_cli `
或者,如果你感到冒险:
` $ git clone https://github.com/dfbenjamin/oeis_cli/ $ cd oeis_cli $ python3 setup.py install `
##用法
使用命令oeis。例如:
` $ oeis 2 3 5 7 A000040: The prime numbers. 2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89 `
还可以添加–unordered标记,这相当于在oeis上使用空格而不是逗号进行搜索:
` $ oeis --unordered 256 128 4 2048 A000079: Powers of 2: a(n) = 2^n. 1,2,4,8,16,32,64,128,256,512,1024,2048,4096,8192,16384,32768,65536 `
使用–name或-n按名称搜索:
` $ oeis --name fibonacci A000045: Fibonacci numbers: F(n) = F(n-1) + F(n-2) with F(0) = 0 and F(1) = 1. 0,1,1,2,3,5,8,13,21,34,55,89,144,233,377,610,987,1597,2584,4181,6765 `
##关于OEIS
作者在任何方面都不隶属于《牛津英语词典》。有关网站的详细信息,请访问https://oeis.org/
oei在[知识共享署名非商业3.0许可证](https://creativecommons.org/licenses/by-nc/3.0/)下提供。