So a few years ago, I did something really brave, or some would say really stupid. I ran for congressBut in my heart, I always want to runBut in my mi ...
分类:
其他好文 时间:
2019-10-02 10:48:44
阅读次数:
112
function Dog(name) { this.name = name this.say = function () { console.log('name = ' + this.name) } } function Cat(name) { this.name = name this.say = ...
分类:
其他好文 时间:
2019-09-21 17:22:24
阅读次数:
59
链接: https://vjudge.net/problem/Gym 100741A 题意: Mathematicians are interesting (sometimes, I would say, even crazy) people. For example, my friend, a m ...
分类:
编程语言 时间:
2019-09-16 16:30:08
阅读次数:
135
Go接口注意事项和细节说明: 注意事项和细节: 1)接口本身不能创建实例,但是可以指向一个实现了该接口的自定义类型的变量(实例) type AInterface interface { Say()} type Stu struct { Name string} func (stu Stu) Say( ...
分类:
其他好文 时间:
2019-08-26 22:55:40
阅读次数:
107
// 原型链继承 想让Child继承Person的方法,因为Child是可以调用原型Child.prototype上的方法和属性的,所以可以将Person中的方法放在Child的原型上function Person(name) { this.name = 'aaaa'; this.say = fun ...
分类:
Web程序 时间:
2019-08-24 13:16:36
阅读次数:
99
import hm_01_测试模块1 import hm_02_测试模块2 hm_01_测试模块1.say_hello() dog = hm_01_测试模块1.Dog() print(dog) hm_02_测试模块2.say_hello() cat = hm_02_测试模块2.Cat() print ...
分类:
其他好文 时间:
2019-08-23 22:34:41
阅读次数:
93
CONJ-SUBORD 如果;假如;只要If you say that something will happen provided or provided that something else happens, you mean that the first thing will happen ...
分类:
其他好文 时间:
2019-08-18 09:35:27
阅读次数:
81
function SuperType(name){ this.name = name; this.age = 28} SuperType.prototype.say="english"function SubType(){ //实例属性 this.age = 29this.ab = 31 //继承了 ...
分类:
其他好文 时间:
2019-08-18 00:22:55
阅读次数:
130
原文:c#自定义Attribute获取接口实现 一般的接口实现多态 定义接口 interface Ipeople { void say(); } 定义实现的类 public class man : Ipeople { public void say() { MessageBox... ...
public String countAndSay(int n) { String arr[] = new String[n + 1]; arr[1] = 1 + ""; for(int i = 2; i ...
分类:
其他好文 时间:
2019-08-06 01:02:39
阅读次数:
216