08 2021 档案

摘要:最近在写安卓页面元素的xpath,不清楚自己写的对不对,就写个小脚本验证一下。 脚本会查找当前目录下所有的 .uix 文件,读取此文件,验证是否能找到相应的 xpath,如果能找到 xpath,则会打开和 .uix 同名的 .png 图片,在此图片上绘制 xpath 所定位的元素的位置。 ps. 命 阅读全文
posted @ 2021-08-19 16:10 wztshine 阅读(459) 评论(0) 推荐(0) 编辑
摘要:super()继承 转自:https://www.cnblogs.com/silencestorm/p/8404046.html class Base(object): def __init__(self): print("Enter Base") print("Leave Base") class 阅读全文
posted @ 2021-08-09 13:58 wztshine 阅读(70) 评论(0) 推荐(0) 编辑
摘要:import smtplib from email.mime.text import MIMEText def send_mail(receiver_address, content): """发送邮件通知""" # 连接邮箱服务器信息 host = 'smtp.163.com' port = 25 阅读全文
posted @ 2021-08-07 09:56 wztshine 阅读(97) 评论(0) 推荐(0) 编辑
摘要:concurrent.futures 异步执行可以由 ThreadPoolExecutor 使用线程或由 ProcessPoolExecutor 使用单独的进程来实现。 两者都是实现抽像类 Executor 定义的接口。 concurrent.futures.Executor 抽象类提供异步执行调用 阅读全文
posted @ 2021-08-05 15:46 wztshine 阅读(151) 评论(0) 推荐(0) 编辑
摘要:安装: pip install matplotlib 入门 简单介绍: 举个例子,在现实中,我们想要画一个图表,首先需要找一个可以画的地方来画,譬如一张纸,一块黑板等,这些承载图像的东西,称之为:figure 然后,你需要画图,以黑板为例子,一个黑板上面可以画多个坐标轴,坐标轴即带有x,y轴 (Ax 阅读全文
posted @ 2021-08-04 22:16 wztshine 阅读(1603) 评论(0) 推荐(0) 编辑
摘要:今天看别人写的代码,看到这么一句话 sys.excepthook = exception_hook 看网上的说法,说是重定向异常的。试验一下 # -*- coding: utf-8 -*- import sys def exception_hook(exctype, value, traceback 阅读全文
posted @ 2021-08-04 17:25 wztshine 阅读(590) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示