Say one of the biggest harvests is this. Close the Stream object
Before writing Java read the file, the end often to close the stream object, I have not understood, why, I do not use the. Close () method, the file can also be read successfully, the total sense of no meaning
It turns out that this. Close () method is not for Java files, or Python files, because the operation of the file object is done by the operating system.
This open, read, and close are all telling the operating system to execute, as for this close () is to tell the operating system that my files are finished and can reclaim resources.
Of course, you do not write off, to read and write have no effect, but the possibility of resources open, can not be closed, over time will affect the efficiency of the program
There is also the concept of Python and a tuple is not in Java, the first time I heard the word, I thought it was Ganso cake ~ ~ ~
The function of tuples is to store values, tuples can store a value or multiple values, and the value can be any type
There is also a character encoding, because all Unicode encoding, read files are used in this format, so in the memory, also follow this code, will not be wrong, but once again using UTF-8 encoding ~
December 14, 2017 a Java-developed Python road----------------(ii)