摘要:
#用于发送测试报告(带附件)或其它内容 # -*- coding:utf-8 -*- import os import smtplib from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipar 阅读全文
摘要:
# coding:UTF-8 # 随机生成手机号码 import random from string import digits def createPhoneNumber(): prelist = ["130", "131", "132", "133", "134", "135", "136", 阅读全文
摘要:
# 获取日期加减之后的日期方法一 from datetime import date, timedelta def get_date(day_off): """ if n>=0,date is larger than today if n<0,date is less than today date 阅读全文
摘要:
import os from selenium import webdriver @staticmethod def browser(browserType): """ 切换浏览器前,判断浏览器类型,并返回相应的驱动 :param browserType: 浏览器类型:ie,chrome,firef 阅读全文
摘要:
```python '''将数据写入 excel ''' def write_excel(self, file_path, sheet_name, date_dict: dict): """ :param file_path: excle 文件的绝对路径 :param sheet_name: 将数据写入哪一页 :param date_dict: 写入的数据,字典类型 :return: """ wb 阅读全文