Commit 1c7c1fb6 authored by Recolic K's avatar Recolic K
Browse files

make the noob code better

parent d3743419
...@@ -17,6 +17,8 @@ prefix_data = list(data['before']) # 在famous_data前面弄点nonsense_data ...@@ -17,6 +17,8 @@ prefix_data = list(data['before']) # 在famous_data前面弄点nonsense_data
postfix_data = list(data['after' ]) # 在famous_data后面弄点nonsense_data postfix_data = list(data['after' ]) # 在famous_data后面弄点nonsense_data
nonsense_data = list(data['bosh' ]) # 代表文章主要nonsense_data来源 nonsense_data = list(data['bosh' ]) # 代表文章主要nonsense_data来源
print("debug: len=", [len(l) for l in [famous_data, prefix_data, postfix_data, nonsense_data]])
repeat_factor = 2 repeat_factor = 2
def randomized_yield(iterable): def randomized_yield(iterable):
...@@ -38,10 +40,7 @@ def new_famous(): ...@@ -38,10 +40,7 @@ def new_famous():
return famous return famous
def new_paragraph(): def new_paragraph():
xx = ". " return ". \r\n "
xx += "\r\n"
xx += " "
return xx
if __name__ == "__main__": if __name__ == "__main__":
topic = input("请输入文章主题:") topic = input("请输入文章主题:")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment