* 导包: selenium.webdriver.support.expected_conditions as EC 1> alert_is_present() //判断页面是否出现alert弹窗 ey: wait = WebDriverWait(driver,10) # 打印alert框的信息 w ...
分类:
其他好文 时间:
2019-10-25 13:09:43
阅读次数:
59
MVP模型 View主要是Activity,Fragment MVP和MVC的差别 1.Model和View不再直接通信,通过中间层Presenter来实现。 2.Activity的功能被简化,不再充当控制器,主要负责View层面的工作。 ...
分类:
移动开发 时间:
2019-10-23 11:24:35
阅读次数:
93
/** * ReactDOM v15.6.1 * * Copyright 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license ...
分类:
其他好文 时间:
2019-10-22 23:48:19
阅读次数:
100
/** * React v15.6.1 * * Copyright 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license fou ...
分类:
其他好文 时间:
2019-10-22 23:40:29
阅读次数:
91
Unit 1 Present continuous (I am doing) Am/is/are + -ing is the Present continuous. I am doing something = I'm in the middle of doing it; I've started ...
分类:
其他好文 时间:
2019-10-22 22:27:02
阅读次数:
88
A. Stones Description 给出3堆物品,个数分别为a,b,c 有两种取数方式,a1b2,b1c2,问最多取多少物品 Solution $O(n^2)暴力$ 1 #include <algorithm> 2 #include <cctype> 3 #include <cmath> 4 ...
分类:
其他好文 时间:
2019-10-22 22:25:44
阅读次数:
99
循环小数输出的坑 BigDecimal做除法时如果出现除不尽(循环小数)的情况,会抛异常: BigDecimal a = new BigDecimal("1"); System.out.println(a.divide(new BigDecimal(3))); 异常如下: 异常如下: Excepti ...
分类:
其他好文 时间:
2019-10-20 11:24:55
阅读次数:
240
一、编译yaml文件 二、创建并查看运行状态 注意点:将pod分配到指定的节点 ①为Node添加label ②将pod分配到带有指定label的node Pod操作: 删除Pod 更新Pod 三、可能遇到的问题 Error:Back off restarting failed container 解 ...
分类:
Web程序 时间:
2019-10-18 15:53:15
阅读次数:
353
MVP MVVM都源自MVC. 传统的MVC,业务逻辑放在Model层,UI在View层,Controller只是Model和View的粘合剂。 实际情况,Model层只存放从json解析的数据模型,Controller层(ViewController)有很多UI逻辑,导致Controller里面既 ...
分类:
移动开发 时间:
2019-10-16 09:49:51
阅读次数:
112
本文只讲了一件事情:软件模型中存在读模型和写模型之分,CQRS便为此而生。 20多年前, "Bertrand Meyer" 在他的《 "Object Oriented Software Construction" 》一书中提出了CQS(Command Query Seperation,命令查询分离) ...
分类:
其他好文 时间:
2019-10-11 20:19:19
阅读次数:
121