摘要:
from selenium import webdriverfrom selenium.webdriver.common.by import Byfrom time import sleep#创建page类:class Page(object): """ 基础类、用于页面对象类的继承 """ log 阅读全文
posted @ 2020-01-18 22:28
干it的小张
阅读(140)
评论(0)
推荐(0)
摘要:
Python 知识补充if_name_="_main":语句说明在后面实例中我们会经常用到这个语句,在解释它之前先补充点Python知识:1.Python文件的后缓为。py。2.py文件既可以用来直接执行,就像一个小程序一样,也可以用来作为模块被导入。3.在Python中导入模块一般使用的是impo 阅读全文
posted @ 2020-01-18 22:27
干it的小张
阅读(168)
评论(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的小张
阅读(559)
评论(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的小张
阅读(289)
评论(0)
推荐(0)
摘要:
#导入多线程模块:import threadingimport osimport requests # 发送请求import timefrom bs4 import BeautifulSoup # 解析文本#导入线程池执行器和进程池执行器:from concurrent.futures import 阅读全文
posted @ 2020-01-18 20:47
干it的小张
阅读(177)
评论(0)
推荐(0)

浙公网安备 33010602011771号