Python支持多种数据类型 在计算机内部,可把任何数据都看成一个对象,而变量就是在程序中用来指向这些数据对象的,对变量赋值就是把数据和变量给关联起来 整数 Python可以处理任意大小的整数,当然包括负整数,在程序中的表示方法和数学上的写法一模一样,如:1,100,-8080,0等 计算机由于使用 ...
分类:
其他好文 时间:
2019-05-22 11:09:22
阅读次数:
118
(1)测试Point类中参数异常 point1中参数是负数,故参数报错 (2)测试Rectangle类中参数异常 矩形的高为负数,故参数报错 (3)测试Triangle类中参数异常 由于三个点斜率都一样,故在一条直线上,参数报错 (4)测试Polygon类中参数异常 由于只传入了两个点的参数,无法构 ...
分类:
其他好文 时间:
2019-05-21 20:57:03
阅读次数:
164
watch单个监听computed多个监听当watch监听复杂数据类型的时候需要做深度监听deepwatch深度监听deep表达式://深度监听watch:{msg:{handler(val,oldval){if(val.text==‘love‘){alert(‘ILoveYou‘)}},deep:true//开启深度监听}}watch深度监听<!DOCTYPEhtml><htm
分类:
其他好文 时间:
2019-05-21 11:11:57
阅读次数:
167
1. shell函数 shell中允许将一组命令集合或语句形成一段可用代码,这些代码块称为shell函数。给这段代码起个名字称为函数名,后续可以直接调用该段代码。 格式: func() { #指定函数名 command #函数体 } Shell 函数很简单,函数名后跟双括号,再跟双大括号。通过函数名 ...
分类:
系统相关 时间:
2019-05-20 13:31:46
阅读次数:
169
JS基础 1.js位置 document.write("在这里是js代码"); 2.js 互动 1??document.write("输入内容"); //打印输出 2??alert 对话框 function example(){ var mychar="I love JavaScript"; ale ...
分类:
Web程序 时间:
2019-05-19 17:03:51
阅读次数:
189
There are different triangles that can be printed. Triangles can be generated by alphabets or numbers. In this C++ program, we are going to print alph ...
分类:
编程语言 时间:
2019-05-18 11:15:14
阅读次数:
132
BeanPostProcessor简介 BeanPostProcessor是Spring IOC容器给我们提供的一个扩展接口。接口声明如下: public interface BeanPostProcessor { //bean初始化方法调用前被调用 Object postProcessBefore ...
分类:
其他好文 时间:
2019-05-13 17:52:43
阅读次数:
99
嘿嘿,最近闲的没事,整理电脑文件,找到了曾经做的一个情人节浪漫界面,比较简单,都忘记那时候是从哪找的源码!不是知道是否有非主流的感觉? 点击下方进去,欢迎观赏。 Love ©不言谢 ...
分类:
Web程序 时间:
2019-05-13 14:43:33
阅读次数:
134
382. Triangle Count https://www.lintcode.com/problem/triangle-count/description 148. Sort Colors https://www.lintcode.com/problem/sort-colors/descript ...
分类:
其他好文 时间:
2019-05-13 12:37:59
阅读次数:
152
packagetriangletest;importjava.util.*;publicclassTriangleTest{publicstaticvoidmain(Stringargs[]){Scannerss=newScanner(System.in);System.out.println("pleaseinputtheresidesandcoloroftriangle");doublea=s
分类:
编程语言 时间:
2019-05-12 22:27:14
阅读次数:
207