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

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第三方库


热门话题
使用Selenium Java查找筛选器窗格“铅笔图标”的元素时出现问题   分布式缓存l2上使用infinispan和hibernate的java连接锁   使用Java的DOM XML API解析XML中的符号和   java是解析和操作字符串的有效方法   java发布NewRelicMeterRegistry时如何过滤仪表   多维数组在java中读取文件后将数据值分组   java如何将httpClient配置为jsoup   java BreakIterator在Android中是如何工作的?   找不到maven GAE类:原因:java。lang.ClassNotFoundException应用程序标识cRedential$AppenginecRedential包装   Jlabel调整java大小   调试如何在VScode中的java类依赖项中设置断点   java正在获取文件夹名,而不是。mp3文件{Android}   java如何将从DiffieHellman类生成的AES密钥添加到使用该密钥的类