设置全局变量 全局添加等待时间 脚本中添加如下代码 from airtest.core.api import * # airtest.core.api中包含了一个名为ST的变量,即为全局设置 ST.THRESHOLD = 0.8