学习数据存储
基本存储:存储至TXT或CSV把数据存储至TXTtitle = "This is the test sentence"# 第一种保存方法with open('D:\\python\\pythonItem\\Scrapy\\UNIT6\\1.基本存储:存储TXT和CSV\\title.txt', "a+") as f: # 把D:\\...换成自己保存的地址 f.write(title) f.close()# 第二种保存方法with open(r'D:\python\python
原创
2021-08-16 16:27:57 ·
132 阅读 ·
0 评论