Cmain_window.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:ChenSpiderGUI 作者: chenyansu 项目源码 文件源码
def savealltable(self):
        self.http_get()
        s = req.content
        s = etree.HTML(s)
        x = s.xpath("//td")
        messages.append("????????...")

        from datetime import datetime
        snow = str(datetime.now())
        if os.path.exists('table') is False:
            os.mkdir('table')

        with open('table/'+snow+'.text', 'w') as f:
            for child in x:
                messages.append(child.text)
                ui.showmssg.setText('\n'.join(messages))
                print(child.text)
                f.writelines(child.text + "\n")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号