Python character encoding
First, the text editor accesses the file principle;
Opening the editing machine opens a process that starts, in memory, the editor's writing is kept in memory, and the memory outage can cause the data to be lost.
So, all the files are saved after the hard drive, the power is not lost.
Our py file is not executed, and there is no difference between the other files.
Second, the Python interpreter executes the py file principle.
1. The Python interpreter starts, which is equivalent to starting an editor.
2, the Python interpreter is equivalent to a text editor, from the hard disk to find the open Python file will be read into memory.
3. The Python interpreter executes the loaded PY file.
Three, the anthology editor idea diagram:
650) this.width=650; "Src=" http://images2015.cnblogs.com/blog/1036857/201705/ 1036857-20170513101721457-685514033.png "alt=" 1036857-20170513101721457-685514033.png "/>
This article is from the "HCWJ" blog, make sure to keep this source http://luwenjuan.blog.51cto.com/10967115/1926389
Python character encoding