摘要:
From stackoverflow. Following are the three commands which appears same but have minute differences hdfs dfs {args} FS relates to a generic file syste 阅读全文
摘要:
随便在网上找了找,感觉都是讲半天讲不清楚,这里写一下。 输出: 为什么会这样呢,点进send就能看到一句话send:Resumes the generator and "sends" a value that becomes the result of the current yield-expre 阅读全文
摘要:
File类通过使用 . 来获取当前路径,从而取得文件。 File f = new File(".\\Res\\Temp.txt"); 或者直接使用空构造函数: File f = new File(""); 此时f.getpath()相当于当前目录。 之后读取文件可以使用流: BufferedRead... 阅读全文
摘要:
被覆盖比较好理解,类似于多态的实现,访问时通过类方法表来访问,你实际是什么类型,访问的方法就是那个类型的方法而不会是你的父类的方法。 被隐藏是指静态方法的访问是根据当前对象的表面类型来决定的,比如 Super s = new Sub(); s.greeting()访问的是Super的静态方法,如果是 阅读全文