上一页 1 ··· 58 59 60 61 62 63 64 65 66 ··· 96 下一页
摘要: Python 知识补充if_name_="_main":语句说明在后面实例中我们会经常用到这个语句,在解释它之前先补充点Python知识:1.Python文件的后缓为。py。2.py文件既可以用来直接执行,就像一个小程序一样,也可以用来作为模块被导入。3.在Python中导入模块一般使用的是impo 阅读全文
posted @ 2020-01-18 22:27 干it的小张 阅读(153) 评论(0) 推荐(0) 编辑
摘要: HTMLTestRunner.py """A TestRunner for use with the Python unit testing framework. Itgenerates a HTML report to show the result at a glance.The simples 阅读全文
posted @ 2020-01-18 22:26 干it的小张 阅读(540) 评论(0) 推荐(0) 编辑
摘要: requests下载 pip install requests pip install -i https://doubanio.com/simple/ requests 常用的方法 响应 import requests ​ requests.get() requests.post() r = req 阅读全文
posted @ 2020-01-18 20:58 干it的小张 阅读(273) 评论(0) 推荐(0) 编辑
摘要: #导入多线程模块:import threadingimport osimport requests # 发送请求import timefrom bs4 import BeautifulSoup # 解析文本#导入线程池执行器和进程池执行器:from concurrent.futures import 阅读全文
posted @ 2020-01-18 20:47 干it的小张 阅读(156) 评论(0) 推荐(0) 编辑
摘要: import osimport requests # 发送请求from bs4 import BeautifulSoup # 解析文本import reimport threadingbase_path = os.path.dirname(os.path.abspath(__file__))img_ 阅读全文
posted @ 2020-01-18 19:51 干it的小张 阅读(194) 评论(0) 推荐(0) 编辑
上一页 1 ··· 58 59 60 61 62 63 64 65 66 ··· 96 下一页