【发布时间】:2017-10-29 09:50:29
【问题描述】:
我有 30911 个 html 文件。我需要进行网页抓取,然后将信息保存到名为 index.txt 的 txt 文件中。 它应该看起来像
filename1, title, t1, date, p1
filename2, title, t1, date, p1
filename3, title, t1, date, p2
and so on...
我只想要文件名,但输出给了我路径+文件名。
【问题讨论】:
标签: python file io store file-format