/** * 循环队列 * 队列设置first指针直接指向队列头部元素,tail尾指针指向队列最后一个元素的后一个,即队列中总是预留一个空位 */ class CircleQueue implements Queue<Integer>{ private Integer[] queueArray = n ...
分类:
其他好文 时间:
2020-01-10 12:31:58
阅读次数:
77
一:根据题目定义接口 ComparableObject并写入方法 二:创建父类Circle,根据题目定义变量,对其进行私有化 三:创建子类ComparableCircle,继承父类,实现接口,完成接口中方法的实现 public int compareTo(Object o) { // ↑这个是一个, ...
分类:
其他好文 时间:
2020-01-09 18:35:33
阅读次数:
115
#propery 属性"""内置装饰器函数,只在面向对象中使用。"""#计算圆的面积,圆的周长 from math import pi class Circle: def __init__(self,r): #r是圆的半径 self.r = r @property def perimeter(sel ...
分类:
其他好文 时间:
2020-01-09 17:10:52
阅读次数:
78
https://about.draw.io/uml-state-diagrams-with-draw-io/ State diagrams have been used in programming to describe the various possible states that a sys ...
分类:
其他好文 时间:
2020-01-08 10:43:43
阅读次数:
96
1 基本图形和属性 <rect><circle><ellipse><line><polyline><polygon>矩形 圆形————椭圆———直线——折线—————多边形PS:<path> 用来绘制任意的曲线<rect> x y width height rx ry x y 表示左上角的位置 <c ...
分类:
其他好文 时间:
2020-01-05 12:03:38
阅读次数:
99
python内置模块collections介绍 collections是Python内建的一个集合模块,提供了许多有用的集合类。 1、namedtuple python提供了很多非常好用的基本类型,比如不可变类型tuple,我们可以轻松地用它来表示一个二元向量。 1 >>> v = (2,3) 我们 ...
分类:
编程语言 时间:
2019-12-24 23:15:44
阅读次数:
92
用turtle函数画空心圆 turtle.circle是从下方开始画圆的,所以要画同心圆的话,每一次都要将画笔移动到下一个圆的底部位置。 画笔的坐标默认在0,0,就以它为圆心。 因为turtle画圆的时候是从圆的底部开始画的,所以需要找到四个圆底部的坐标 四个空心圆的代码 import turtle ...
分类:
编程语言 时间:
2019-12-24 09:17:30
阅读次数:
912
Description Description There is a stone game.At the beginning of the game the player picks n piles of stones in a circle. The goal is to merge the st ...
分类:
其他好文 时间:
2019-12-21 22:30:37
阅读次数:
83
敏捷设计是一个过程,它是一个持续的应用原则、模式以及实践来改进软件的结构和可读性,避免软件腐化的过程。 软件的腐化 僵化性(Rigidity):很难对系统进行改动,因为每个改动都会迫使许多对系统其他部分的其他改动。 脆弱性(Fragility):对系统的改动会导致系统中和改动的地方在概念上无关的许多 ...
分类:
其他好文 时间:
2019-12-21 12:03:34
阅读次数:
81
html: 1 <div class="circle"> 2 <div class="percent-circle percent-circle-left"> 3 <div class="left-content"></div> 4 </div> 5 <div class="percent-circ ...
分类:
Web程序 时间:
2019-12-20 20:33:40
阅读次数:
392