diff --git a/bullshit.py b/bullshit.py index b27c10a0492d3fe5af89b629395a5c8c6b04e912..4a836f1050aea3c3ef56c956dbd2967f6900f0b1 100644 --- a/bullshit.py +++ b/bullshit.py @@ -17,6 +17,8 @@ prefix_data = list(data['before']) # 在famous_dataå‰é¢å¼„点nonsense_data postfix_data = list(data['after' ]) # 在famous_dataåŽé¢å¼„点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 def randomized_yield(iterable): @@ -38,10 +40,7 @@ def new_famous(): return famous def new_paragraph(): - xx = ". " - xx += "\r\n" - xx += " " - return xx + return ". \r\n " if __name__ == "__main__": topic = input("è¯·è¾“å…¥æ–‡ç« ä¸»é¢˜:")