首页
技术博客
登录
6mi
u
盘
搜
搜 索
技术博客
06步pythoncsv写入操作
06步pythoncsv写入操作
tech
2022-12-11
98
from lxml import etree with open('JD_Phone.csv', 'a', newline='', encoding='utf-8')as f: #这里不写目录,默认是开发文件project根目录下 write = csv.writer(f) p_price = 'div/div[@class="p-price"]/strong/i/text()' write.writerow(p_price) f.close()
转载请注明原文地址:https://tech.qufami.com/read-7972.html
最新回复
(
0
)