packing 组包,函数使用 【*】 (for tuples)【元组】, & 【**】(for dict) 【 字典】来接受可迭代的参数 unpacking 解包 ,函数内部定义多个参数(可以是具体的,也可以用【具体】+【*args】 OR 【**kwargs】)来对应传入的可迭代数据 eg: I Read More
posted @ 2020-03-15 22:11 walk_the_talk Views(452) Comments(0) Diggs(0)
python 内置的 time模块,import time 可以直接使用。 time.time() 返回一串时间戳,整数位9位,javastript中为13位 python_10int = time.time()timestamp = int((round(python_10int * 1000)) Read More
posted @ 2020-03-06 18:20 walk_the_talk Views(127) Comments(0) Diggs(0)
制定定时执行计划 Crontab >>Linux定时执行任务 安装: yum -y install crontab # Example of job definition:# . minute (0 - 59)# | . hour (0 - 23)# | | . day of month (1 - Read More
posted @ 2020-03-02 23:28 walk_the_talk Views(693) Comments(0) Diggs(0)
what? 在Selenium项目中,对页面做出修改之后,弹出消息提示框,也就是toast。 toast,Web页面的消息提示框,动画出现,弹出一段时间后自动消失。e.g. why? 在实际项目中,用例的失败与否可以借助toast的属性来断言,所以需要定位toast,并且获取其属性。 how? 1. Read More
posted @ 2020-01-21 15:27 walk_the_talk Views(1991) Comments(0) Diggs(0)