Merge branch 'master' into master

master
meng ke 5 years ago committed by GitHub
commit 798e21ca1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 27
      自动狗屁不通文章生成器.py

@ -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)
Loading…
Cancel
Save