python in the write and read usage, with or without line breaks

When operating python file called write () function when, python and not automatically added to the end of the text newline \ n So, write two sentences and no branches, causing this situation.

Recall we said before, read () function of time, it will automatically return the document at the end of a line break caused us more to print a blank line, write and read really looks a little duality (kidding)

So be sure to write cultivate good habits, pay attention to add a line break.

 

Guess you like

Origin www.cnblogs.com/ZHANG576433951/p/11464665.html