电子诗人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 hashes)
Built Distribution
pyepoet-0.1.3-py3-none-any.whl
(45.0 kB
view hashes)