
python 编程
python 实践与应用
hello-Will
软件开发学习交流
展开
-
自动化CI分析报告系统
使用场景 我们有个基于jenkens的 CI,每天都会测试很多太不同的服务器,产生很多的数据,收到很多邮件,情况是数据太分散,还需要人为的花费很多时间去分析处理,由此产生的数据集中化,分析处理后,按需报告的系统。 报告结果 下面是按照我们的需求对每个测试case的分析结果部分展示 这个文件是使用pandas处理生成的,每天相关人员都会收到一个邮件附件是上面的报告文件,根据需求把各项数据进行处理。 技术实现 pandas pandas 做excel文件的统计,分析,再组织的工作。 all_data原创 2020-08-16 13:50:12 · 659 阅读 · 0 评论 -
python 发送邮件代码demo
import smtplib from os.path import basename from email.mime.application import MIMEApplication from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from email.utils import COMMASPACE, formatdate def send_mail(send_from, sen原创 2020-05-15 10:59:05 · 453 阅读 · 0 评论 -
python 好用的内建函数详解
python 内建函数详解 python 内建了很多基础的函数,在我们python 编程中活学活用可以达到很好的效果, 这里介绍几个比较常用的。 any 作用:返回 一个可迭代数据中是否有 有效数据的存在,有 返回True 无: false 数据 全 或操作。 1 or 2 or 3 def any(iterable): for element in iterable: ...原创 2019-11-12 15:14:09 · 143 阅读 · 0 评论 -
Half Automate Generate Test Script Model
Half Automate Generate Test Script Model What I think is that we can write a tool to convert the test script according to the description above testrail. using python tools automatic write python te...原创 2019-11-06 08:45:42 · 199 阅读 · 0 评论 -
python 根据ip 地址 获取网卡掩码和名字
这里用到python 操作网卡比较好的模块netifaces, 其他需求,可以仔细研究下这个模块。 import netifaces def get_netmask_through_nicip(nicip): """ Get the netmask through give a ipaddr Args: nicip: ip...原创 2019-11-05 17:01:36 · 1333 阅读 · 0 评论