使用基本句子结构生成随机段塞
sentenceslug的Python项目详细描述
sentenceslug
生成相对容易记住的段塞的模块
安装
pip install sentenceslug
用法
In[1]:fromsentenceslugimport*In[2]:sentence_slug()Out[2]:'Improve_That_Last_Day'In[3]:sentence_slug_digits()Out[3]:'Start_His_National_Town_377'In[4]:simple_slug()Out[4]:'NationalCar'In[5]:simple_slug_digits()Out[5]:'LegalSystem305'In[6]:nsa_codeword()Out[6]:'POORUSE'In[7]:make_slug(simple=True,digits=5,delimiter="-")Out[7]:'Short-Good-83933'
更改日志
v1.1 2018-12-05
- Python 3 Changes