Python2 and Python3One, the difference between the various methods1. Print Statements
Print (' AAA ') #方法print ' aaaa ' #语句
2, Python3 incompatible python23, Mac face python3 Configuration environment variable 4, a few Python file introduction
4.1. Python comes with editor
Need to be saved before running
4.2. Default shell mode
4.3. Official Python documentation
4.4. Python container (middle key)
5. Python Directory
5.1, if you do not know the corresponding directory path, you can enter through the terminal:which python3 to view
5.2. Bin directory
5.3, pip command-install a third-party library, also need to add environment variables
5.4. lib Directory--site-packages folder, place the completed Python third-party library
5.5. Third-party libraries: Django, requests, selenium, etc.
6. Install third-party libraries
See what the latest version is--Install with PIP
Terminal to see if Django was installed, or to view a Django version
Python3-m Pip Show Django
Uninstalling an installed Django with a terminal
python3-m pip Uninstall Django
View the Django version (after intentionally entering the wrong Django version, the terminal does not detect the corresponding version will enumerate all)
python3-m pip Install django==24234234
Install the specified Django version
python3-m pip Install django==1.11.2
Install with Pip watercress Source (faster)
python3-m pip Install-i https://pypi.douban.com/simple django==1.11.2
7. Development tool Selection
7.1. Sublime Text
7.2, Pycharm
Second, python_base