摘要: 1. 模块的引入 import modulename from modulename import functionname 2.运行方式 python file_name.py 3 安装类库 pip install moduleName pip list 获取已经安装的类库 pip show mo 阅读全文
posted @ 2019-10-06 11:20 若水如引 阅读(105) 评论(0) 推荐(0) 编辑
摘要: import os import requests from bs4 import BeautifulSoup import lxml def Gethtml(url): response=requests.get(url) response.encoding="utf-8" # print(response.text) return response.content def parseHtml( 阅读全文
posted @ 2019-10-06 11:18 若水如引 阅读(327) 评论(0) 推荐(0) 编辑