随机文本生成器,看起来像拉丁语。
lorem的Python项目详细描述
python lorem包
小结
随机文本生成器,看起来像拉丁语。
简单示例
importlorems=lorem.sentence()# 'Eius dolorem dolorem labore neque.'p=lorem.paragraph()t=lorem.text()
复杂示例
fromlorem.textimportTextLorem# separate words by '-'# sentence length should be between 2 and 3# choose words from A, B, C and Dlorem=TextLorem(wsep='-',srange=(2,3),words="A B C D".split())s1=lorem.sentence()# 'C-B.'s2=lorem.sentence()# 'C-A-C.'
历史记录
0.1.1(2016-06-18)
- 更新文档
0.1.0(2016-06-17)
- 最小可行产品
0.0.1(2016-06-14)
- pypi上的第一个版本。