第11章 测试代码 11-1 城市和国家 :编写一个函数,它接受两个形参:一个城市名和一个国家名。这个函数返回一个格式为City, Country 的字符串,如Santiago, Chile 。将这个函数存储在一个名为city_functions.py的模块中。创建一个名为test_cities.p ...
分类:
编程语言 时间:
2020-03-29 19:39:39
阅读次数:
535
一. xpath定位:支持属性定位,只要属性唯一就可以定位到,无论是默认属性还是自定义属性 1.属性定位: 代码格式: //*[@name="city"] 如果有多个属性: /*[@name="city" and @size="4"] 其中//*代表全部元素,也可以用//select来过滤div的属 ...
分类:
Web程序 时间:
2020-03-27 14:24:10
阅读次数:
102
The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elev ...
分类:
其他好文 时间:
2020-03-27 12:53:59
阅读次数:
79
微信分享 <!-- 微信分享开始 --> <div id="zs"> <img src="../images/live/wxShare.png" alt=""> </div> <div id="heibg"></div> <style> #zs { width: 100%; left: 0px; t ...
分类:
微信 时间:
2020-03-23 22:23:20
阅读次数:
118
Find them, Catch them Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 61806 Accepted: 18734 Description The police office in Tadu City deci ...
分类:
其他好文 时间:
2020-03-23 00:14:47
阅读次数:
66
一. 分布式架构 1. 特点 分布式系统是一个硬件或软件组件分布在不同的网络计算机上,彼此之间仅仅通过消息传递进行通信和协调的系统; 分布性:组成分布式系统的所有计算机节点都是对等的; 并发性:系统中的多个节点同时操作一些共享的资源; 缺乏全局时钟:很难定义两个事件究竟谁先谁后; 故障总是会发生:组 ...
分类:
其他好文 时间:
2020-03-22 16:09:12
阅读次数:
75
1018 Public Bike Management (30分) There is a public bike service in Hangzhou City which provides great convenience to the tourists from all over the w ...
分类:
其他好文 时间:
2020-03-22 15:52:07
阅读次数:
71
I have seen that the most difference between an original BMW ICOM A2 and a clone is that the original has wifi capability, whereas the clone does not. ...
分类:
其他好文 时间:
2020-03-19 20:09:59
阅读次数:
113
ArrayList源码分析 ArrayList是collection下的集合,底层是动态数组实现,其中的数据可以重复 初始化 ArrayList初始化,有三种方式,一般不指定容量的情况下,初始化只会将空元素集合赋值给相应的元素数据集合, ~~~java // 所以,初始化的集合,容量为0,是一个Ob ...
分类:
其他好文 时间:
2020-03-17 21:00:34
阅读次数:
57
1、属性 //存储元素的数组 protected Object[] elementData; //存储元素的个数 protected int elementCount; //扩容时的增加量,大于0是增加capacityIncrement,否则增加两倍(默认两倍) protected int capa ...
分类:
其他好文 时间:
2020-03-17 18:00:49
阅读次数:
82