随笔- 50
文章- 70
评论- 6
阅读-
18284
文章分类 - Python爬虫
Python爬虫
基本存储:存储到TXT或CSV
摘要:基本存储:存储到TXT或CSV 将数据保存到txt文件中 title = "This is a test sentence. " with open("title.txt","a+") as f: f.write(title) f.close() # 使用with 这句代码可有可无 将数据保存到cs
阅读全文