FileInputStream类与FileReader类的区别:两个类的构造函数的形式和参数都是相同的,参数为File对象或者表示路径的String,它们到底有何区别呢? Readers and Writers work only on line based character data, so plain text files.For anything else, you MUST use Streams. JDK5 API:FileInputStream is meant for rea…
新式类就是 class person(object): 这种形式的, 从py2.2 开始出现的 新式类添加了: __name__ is the attribute's name. __doc__ is the attribute's docstring. __get__(object) is a method that retrieves the attribute value from object. __set__(object, value) sets the attribute on…