随笔分类 -  Python

摘要:import os.path import requests from lxml import etree import xlwt import xlrd def create_excel(): if not os.path.exists('./lianjia_excel.xls'): book = 阅读全文
posted @ 2022-10-24 20:05 没有童话的鱼 阅读(104) 评论(0) 推荐(0)
摘要:import os.path import requests from lxml import etree if __name__ == '__main__': if not os.path.exists('./jianli'): os.mkdir('./jianli') headers = { ' 阅读全文
posted @ 2022-10-19 18:22 没有童话的鱼 阅读(131) 评论(0) 推荐(0)
摘要:import os.path import requests from bs4 import BeautifulSoup if __name__ == '__main__': if not os.path.exists('./sanguoyanyi'): os.mkdir('./sanguoyany 阅读全文
posted @ 2022-10-18 20:20 没有童话的鱼 阅读(337) 评论(0) 推荐(0)
摘要:import os.path import re import requests if __name__ == '__main__': # 如果不存在该文件夹则进行创建 if not os.path.exists('./saimenshibo'): os.mkdir('./saimenshibo') 阅读全文
posted @ 2022-10-18 17:57 没有童话的鱼 阅读(263) 评论(0) 推荐(0)