上一页 1 ··· 61 62 63 64 65 66 67 68 69 ··· 96 下一页
摘要: import osimport requestsfrom bs4 import BeautifulSoupbase_path = os.path.dirname(os.path.abspath(__file__))img1_path = os.path.join(base_path,"img1")r 阅读全文
posted @ 2020-01-17 21:46 干it的小张 阅读(247) 评论(0) 推荐(0)
摘要: import os#导入发送请求模块:import requests#导入解析文本模块:from bs4 import BeautifulSoup#返回上一级目录:base_path = os.path.dirname(os.path.abspath(__file__))#路径和图片文件夹拼接:im 阅读全文
posted @ 2020-01-17 21:44 干it的小张 阅读(842) 评论(0) 推荐(0)
摘要: import requests#伪造请求:h = { "user-agent":"Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/53 阅读全文
posted @ 2020-01-17 21:06 干it的小张 阅读(211) 评论(0) 推荐(0)
摘要: import requestsfrom fake_useragent import UserAgenth = { "user-agent": UserAgent().chrome}response = requests.get(url="https://www.zhihu.com/question/ 阅读全文
posted @ 2020-01-17 20:50 干it的小张 阅读(892) 评论(0) 推荐(0)
摘要: pip install matplotlib -i http://pypi.douban.com/simple/ pip install matplotlib -i https://pypi.tuna.tsinghua.edu.cn/simplepip install -i https://pypi 阅读全文
posted @ 2020-01-17 20:35 干it的小张 阅读(150) 评论(0) 推荐(0)
上一页 1 ··· 61 62 63 64 65 66 67 68 69 ··· 96 下一页