Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
menzi11 authored Nov 1, 2019
2 parents 3df9eef + 6426c55 commit 798e21c
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions 自动狗屁不通文章生成器.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,16 +186,17 @@ def 另起一段():
xx += " "
return xx


for x in xx:
tmp = str()
while ( len(tmp) < 6000 ) :
分支 = random.randint(0,100)
if 分支 < 5:
tmp += 另起一段()
elif 分支 < 20 :
tmp += 来点名人名言()
else:
tmp += random.choice(废话)
tmp = tmp.replace("x",xx)
print(tmp)
if __name__ == "__main__":
xx = input("请输入文章主题:")
for x in xx:
tmp = str()
while ( len(tmp) < 6000 ) :
分支 = random.randint(0,100)
if 分支 < 5:
tmp += 另起一段()
elif 分支 < 20 :
tmp += 来点名人名言()
else:
tmp += random.choice(废话)
tmp = tmp.replace("x",xx)
print(tmp)

0 comments on commit 798e21c

Please sign in to comment.