一种交互式程序,用诗句、参考文献和牧师节选挖空文本文件。

diyr的Python项目详细描述


在你的生活中尽情享受

“愿基督的道,在你里面,用各样的智慧,丰富地住在你里面,用诗篇、赞美诗、灵歌彼此教导、劝戒,在你心里用恩典歌颂神。”—歌罗西书3:16

安装

pip install diyr

用法

要让Diyr从Internet上随机抽出一本书和一章,只需键入:

diyr

要让Diyr处理磁盘上的大纲,请使用:

diyr -t outline -f <file_path_to_outline_text_file>

要更改diyr替换的单词数,请使用-l标志:

diyr -l 9

填空参考诗句的快速入门

# Install the application
$ pip install diyr
# Create a file with a bunch of verse references. For example:
$ cat ~/verse_references.txt
There is now then no condemnation to those who are in Christ Jesus. - Romans 8:1
For we know that all things work together for good to those who love God, to those who are called according to His purpose, - Romans 8:28
As it is written, the first Adam became a living soul, the last Adam became a life giving Spirit - 1 Corinthians 15:45
And you, though dead in your offenses and sins, - Ephesians 2:1

# Tell diyr the file contains verses with references (-t verse_references), then tell it
# to quiz you on the verse references (-r)
# The number of words to be hollowed out can be increased using the '-l' flag:

$ diyr -f ~/verse_references.txt -l 8 -t referenced_verses -r

示例输出

diyr -f ~/Documents/MysteryOfHumanLife/key_one.txt -t outline -l 8 -r
_________ ___ _______ __ _____ _________
UNLOCKING THE MYSTERY OF HUMAN EXISTENCE
Amen!
_____ ________
GOD'S CREATION
Amen!
1.___ ___ _____ _____
1.MAN HAS GOD'S IMAGE
Amen!
___ God said, ___ Us make ___ in ___ ______ _________ __ ___ likeness.
And God said, Let Us make man in our image, according to our likeness.
Amen!
Type the verse references verbatim:
Genesis 1:26
Amen!
_____ ________ __ man is _________ ____ His ________ __ all _____ things.
God's creaatin of man is different then His creation of all things.
Incorrect. Delta show below:
- god's creaatin of man is different then his creation of all things.
?           -                        ^^^^
+ god's creation of man is different from his creation of all other things.
?             +                      ^^^^                     ++++++

当一行输入错误时,将打印增量。 例如,一个包含有相应诗句参考的诗句的文件:

指定书籍和章节时使用DIYR时的示例输出(必须连接到Internet):

diyr --book Romans --chapter 8 -l 8
The book Romans chapter 8 will be used
1._____ __ now ____ __ ____________ to _____ who are __ ______ Jesus.
1.There is now then no condemnation to those who are in Christ Jesus.
Amen!
2.For the ___ of the Spirit of ____ has _____ me __ Christ Jesus from ___ law of sin ___ __ ______
2.For the law of the Spirit of life has freed me in Christ Jesus from the law of sin and of death.
Amen!
3.For that _____ ___ law could not do, in that __ was ____ through the flesh, God, sending His own Son in the ________ of ___ flesh of ___ ___ concerning sin, condemned sin in the flesh,
3.For that which the law could not do, in that it was weak through the flesh, God, sending His own Son in the likeness of the flesh of sin, and concerning sin, conmnedd sin in the flesh,
Incorrect. Delta show below:
- 3.for that which the law could not do, in that it was weak through the flesh, god, sending his own son in the likeness of the flesh of sin, and concerning sin, conmnedd sin in the flesh,
?                                                                                                                                           -                           -
+ 3.for that which the law could not do, in that it was weak through the flesh, god, sending his own son in the likeness of the flesh of sin and concerning sin, condemned sin in the flesh,
?                                                                                                                                                                   ++

启用“钉子式”模式

nail-it模式通过提示用户三次重新输入任何输入错误的行,帮助用户真正地将内容输入到其中。

要启用“nail-it”模式,请使用-n标志。

洗牌数据

可以使用-s标志对数据进行洗牌。

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

推荐PyPI第三方库


热门话题
java Intellij通过方法中的包查找用法   java中VS代码和打包命名的问题   将java CMS功能集成到具有高度动态内容的网站(Lucene/Mysql/Nosql)的策略   oracle的java类强制转换异常。jdbc。驾驶员OracleConnection   字节码向JVM添加上指令   如何在抽象类中执行java方法?   java是否可以在apache访问日志中排除指定的GET参数?(作者:W7开发环境)   java如何获取已安装音频播放器的列表?   尝试向HS学生展示如何使用Java访问MS数据库   使用正则表达式java对给定行中的特定字符串进行计数   java JOOQ Select查询中的Select计数   方法Java,如何从二维双精度数组中找到特定值?   获取图像URL的java正则表达式   java在切换到新的窗口驱动程序后找不到元素