with open(dirs+title[0]+".txt","w+",encoding='utf-8') as f:
f.write('\r\n'.join(content))
#'\r\n' 直接插入换行,解决换行问题 content中包含空格的全部内容
02-12
1250
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
03-26
2870
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
with open(dirs+title[0]+".txt","w+",encoding='utf-8') as f:
f.write('\r\n'.join(content))
#'\r\n' 直接插入换行,解决换行问题 content中包含空格的全部内容