电子诗人Python版
Project description
PyEPoet 0.1.3
介绍
刘慈欣电子诗人Python版
安装
(python -m) pip install pyepoet
函数
#生成一首诗,并输出到file
genpoem(verse = 5, line = 10, rhyme = None, file = sys.stdout)
#生成一首诗,并返回一个字符串
gpoem_string(verse = 5, line = 10, rhyme = None)
速度
押韵:约45000行/秒
不押韵:约1100行/秒
示例
from pyepoet import *
genpoem()
print()
genpoem(rhyme = "a")
print()
print(gpoem_string())
更新历史
版本0.1.3 (2021/3/13)
- 修复导入输出问题
版本0.1.2 (2021/2/11)
- 初始版本
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyepoet-0.1.3.tar.gz
(45.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pyepoet-0.1.3-py3-none-any.whl
(45.0 kB
view details)
File details
Details for the file pyepoet-0.1.3.tar.gz.
File metadata
- Download URL: pyepoet-0.1.3.tar.gz
- Upload date:
- Size: 45.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a61d2e2168936c25d2855e07e3c989139bcccde803770cf348ec983c38d033fb
|
|
| MD5 |
9567291f5cb9d44e6142c215a0529c71
|
|
| BLAKE2b-256 |
a36c49e45a9071a1d251f1f86b97a9c36688ee3b8a5c83f7fe542e8b711e061b
|
File details
Details for the file pyepoet-0.1.3-py3-none-any.whl.
File metadata
- Download URL: pyepoet-0.1.3-py3-none-any.whl
- Upload date:
- Size: 45.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
667000b77e5ae83e4fc96d68493023c2764ad988916d3da8cceb632725bd877e
|
|
| MD5 |
a21702b6bd950bbd72b1c7fe0f3d22b0
|
|
| BLAKE2b-256 |
b05cc390c6aac3358d4eff1f17074246043b18f27d002bd387d64cac7794b1c7
|