Open
Conversation
|
原版也有 BullshitGenerator/自动狗屁不通文章生成器.py Lines 42 to 43 in 6adb281 |
Author
|
代码中设置了文章为6000字,但是生成的文章有好几万字?(原版没有测试,.html文件是这样的)------------------ 原始邮件 ------------------
发件人: "Liu-Wen-Yuan"<notifications@github.com>
发送时间: 2020年2月11日(星期二) 下午2:58
收件人: "menzi11/BullshitGenerator"<BullshitGenerator@noreply.github.com>;
抄送: "gittig11"<1710336112@qq.com>;"Author"<author@noreply.github.com>;
主题: Re: [menzi11/BullshitGenerator] 生成文章()函数的修正以及字数统计的修正 (#172)
原版也有for(let 空 in 主题)
https://github.com/menzi11/BullshitGenerator/blob/6adb2812cf9efcaa001f71b660a8af63ca085532/%E8%87%AA%E5%8A%A8%E7%8B%97%E5%B1%81%E4%B8%8D%E9%80%9A%E6%96%87%E7%AB%A0%E7%94%9F%E6%88%90%E5%99%A8.py#L42-L43
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
|
原版是~6000字。可能js和py3处理字符串遍历的方式不一样。 |
Author
|
我试了一下,Python版本的代码也有问题。 if name == "main": |
|
这( |
Author
|
@Dobby233Liu 哈哈,这里可能是作者笔误吧,添加"for x in xx"后字数会多好几倍。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
1、生成文章()函数的修正
不需要用到for(let 空 in 主题){}循环
2、字数统计的修正
论述、后面垫话句末的空格要删掉,避免字数统计多了1。对应的要修改 增加段落(章节)函数。