简单项目生成器。

rpg-namer的Python项目详细描述


Build Statustypes

rpg名称

这是一个简单的包,可以从预先编译的描述和项类型列表中生成随机项名称

生成的一些示例名称:

Lusca's Fists
Consternation Dress
The Intimidation Footpads
Kushtaka's Spangenhelm
The Actual Nasal Helmet
Yuki-Onna's Greaves
Footguards of the Edged Antaeus
Trepidity Warboots of the Svartálfar
Possible Anklet
Horrible Trousers
Tanktop of the Shikoku
Legwraps of the Dismay Familiar Spirit
Suit of the Real Suangi
Devilish Gloves of the Heikegani

安装和使用

安装

^{pr2}$

升级

python -m pip install rpg_namer --upgrade

基本用法

fromrpg_namerimportRPGItemsgen=RPGItems()print(gen.random_item())# Output: Horrible Trousers

项目、形容词和目标名词的附加覆盖作为关键字和支持列表提供 功能:

fromrpg_namerimportRPGItemsoverride_items=['buckler']override_nouns=['serpent']override_adjectives=['flaming']gen=RPGItems(items=override_items,adjectives=override_adjectives,nouns=override_nouns)print(gen.random_item())# Output: Flaming Buckler of the Serpent

项目名称的生成将使用每个列表中的随机选择完成,并由静态项目格式生成 在班上。对于其他建议格式或新单词列表,请通过branch/PR添加建议

词表生成

在examples目录下可以找到从源代码生成单词列表或剥离工具,其中包括 一些用于生成单词列表和格式化python列表以供使用的基本代码。这在新列表中有帮助 一代人。在

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
基于Java的遗传算法确定最优交易行为   java改型2.0无法解析Json嵌套对象   java在数组中查找最大额定值(数字),我们不能跳过数组中的一个或多个连续数字   java在spring boot中从命令行设置活动概要文件和配置位置   JavaAxis2:传输错误:404错误:未找到帮助理解其真正含义   java使用Play2WAR和Play2.2.1   java理解函数运算符:Lambda   在代理java后面读取https网页数据   java应用程序。Android单元测试中的类mock   java为什么onClick布局XML引用的方法需要是公共的?   从SMTLIB2文件解析的java显示声明   java重写给定的类以使用组合而不是继承   HTMLUnit和Java:NoSuchMethodException:createDefaultSSLContext()   java如何使用Spring和ThymeLeaf从前端正确更新后端中的对象?   来自init()Java的方法调用   使用cellrendering从数据库向JTable动态添加数据后,java无法使用JTable执行排序操作   java Android Studio 1.5.1。渲染错误(浮动操作按钮)   web服务如何使用UsenameToken和PasswordDigest为JAVA中的SOAP客户端附加wsse安全头   java为什么要在局部变量和myApplicationClass中同时删除“ArrayList.remove”?