摘要:
一、Allure简介 Allure是一种灵活的,轻量级,支持多语言的测试报告框架,它不仅可以以简洁的web报告形式显示已测试的内容,而且允许参与开发的每个人从测试日常执行种提取最大限度的有用信息。支持多种语言:java,python,php,.net等。 二、Allure安装 安装步骤: 1、下载a 阅读全文
摘要:
阅读全文
摘要:
#统计字符个数方法 def count_char(char,string): count=0 for c in string: if c==char: count+=1 return count char='l' string='hello world' count =count_char(char 阅读全文
摘要:
#替换基本变量值 name='alice' age=25 message='我的名字是{},今年{}岁'.format(name,age) print(message) #格式化数字 pi=3.1415926 fromatte_ip='圆周率的近似值为{:.2f}'.format(pi) print 阅读全文
摘要:
#密码生成 import random import string def generate_password(length): char_str=string.ascii_letters+string.digits+string.punctuation #英文,数字,特殊字符合集 password 阅读全文
摘要:
import json #导入JSON模块 with open('data.json',encoding='utf-8') as json_file: #读取JSON文件 py_obj=json.load(json_file) #JSON文件读取到字典 with open('data1.json', 阅读全文
摘要:
import time #导入时间模块 def timer(seconds): start_time=time.time() #获取当前时间 end_time=start_time+seconds #当前时间+要倒数的秒数 while time.time()<end_time: #当前时间小于结束时 阅读全文
摘要:
公司小花们整理Excel需要一个一个订单进行处理校对,然后整理价格收益等,项目开发阶段,没事帮助了一下小花们,助人为乐快乐多,哈哈哈 import xlrd from xlutils import copy ''' 帮助运营人员跑订单及金额相关数据 ''' #读取导出表的订单号等信息,在0,1,10 阅读全文
摘要:
一、网页连接禅道数据库 网页连接禅道数据库,官方给了详细的介绍,这里把官方文档搬过来,哈哈哈 1、网页登录数据库 禅道数据库管理用的是adminer,但是为了安全,访问adminer的时候需要身份验证,需要运行/opt/zbox/auth/adduser.sh来添加用户(先 cd /opt/zbox 阅读全文
摘要:
本人使用的是yagmail模块进行发送图文格式的邮件,发送图文格式的邮件,需要用HTML格式文件进行发送,以下是我定义的HTML文件 <html> <body> <img src="./out1.jpg" /> </body> </html> 这样的文件发送后邮件无法显示图片,原因是由于这个连接是本 阅读全文