Serialization means that an object instance can be saved as a binary string. Of course, once saved as a binary string, it can also be saved as a text string. For example, if the value of a counter is 2, we can use the string "2. If there is an object called connter with the current value of 2, it can be serialized to "2", reverse, or a counter instance with the value of 2 can be obtained from "2. In this way, it will be serialized when it is shut down, and deserialized when it is turned on. Each time it is started, it will continue. Not all from the beginning. Serialization Overview
Installing the Eclipse + python + Djgano + PyDve development environment on the MAC platform is complicated. It took me a lot of time to install it successfully!
The main difficulties are:
(1) The installation path of Multi-version software may change, so that the software cannot quickly find the path of the latest version you have installed, if the Eclipse you installed does not find the Python path you installed
You need to manually add the Python Intrepreter path. This time, the Python installation path is/usr/local/bin/pythonw. Therefore, EClipse always finds the correct path at the beginning, leading to compilation errors!
(2) The installation of MySQl is laborious. In addition to the two installation packages officially provided, the installation of python-mysqldb requires errors!
0. Install JDK
On the JDK official website, go to https://www.php1.cn/select the appropriate region, with 32-bit and 64-bit differences.
Mountain Lion is a 64-bit operating system, so all of the following software should select the 64-bit installation package!
1. Install Python and Django:
Python 1.1
Python has been installed on MAC. You can upgrade it to the latest stable version. This time, I used Python2.7.
:Https://www.php1.cn/
1.2 Django (https://www.php1.cn /)
Django: The https://www.php1.cn/
Decompress the package to the directory where the file is located and execute:
Python setup. py install
Install Django
It is easy to test whether django is successfully installed. Enter the python editing environment,
Input: import django
Enter django. VERSION.
If the version number is displayed correctly, the operation is successful.
2. Install eclipse
Download and decompress Eclipse and run Eclipse:
Use eclipse-> Windows-> Preferences-> Install/Update-> Available Software Sites to add the Pydev website, and Install PyDev through eclipse-> help-> Install New Software...
PyDev eclipse: https://www.php1.cn/
Configure PyDev,Preferences-> Pydev-> Interpreter-PythonClick Auto ConfigCreate a Python Project: File-> New-> Other...-> Pydev Project,
The above is the content set up by MAC (Mountain Lion) + Eclipse + python + Django + PyDve + MySQL development environment. For more information, see PHP Chinese Network (www.php1.cn )!