基本存储:存储至TXT或CSV 把数据存储至TXT title = "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