Python development environment to build
http://www.cnblogs.com/jxldjsn/p/6034158.html
Install the plugin Package Control
https://packagecontrol.io/installation#st3
1. Ctrl+Shift+p to bring up the Package Control command panel
① To view the installed plugins, use the command Package Control:List Package or through the menu Preferences->Package Settings
②Install the plug-in, select Package Control: Install Package and press Enter, enter the plug-in to be installed in the next step
Enter the plugin to be installed (eg: sublimecodeintel)
2. When Sublime Text3 installs the Pylinter plugin, it reports "Pylinter could not automatically determine the path to lint.py
Pylinter download address: https://pypi.python.org/pypi/pylint#downloads
Unzip the downloaded Pylinter, and then execute the python setup.py install command under the cmd to install the Pylinter directory.
Then modify the Pylinter.sublime-settings file in the directory. Set the pylint_path variable, specify the location of pylint, "pylint_path": "pylint installation directory", you need to pay special attention to the "/" after the drive letter
3. Sublime text3 (Sublime Text Build 3126 x64 Setup.exe) registration code
Reference: http://www.cnblogs.com/hester/p/5617695.html
—– BEGIN LICENSE —– Michael Barnes Single User License EA7E-821385 8A353C41 872A0D5C DF9B2950 AFF6F667 C458EA6D 8EA3C286 98D1D650 131A97AB AA919AEC EF20E143 B361B1E7 4C8B7F04 B085E65E 2F5F5360 8489D422 FB8FC1AA 93F6323C FD7F7544 3F39C318 D95E6480 FCCC7561 8A4A1741 68FA4223 ADCEDE07 200C25BE DBBC4855 C4CFB774 C5EC138C 0FEC1CEF D9DCECEC D3A5DAD1 01316C36 —— END LICENSE ——
4. Run Python in sublime text3
http://blog.csdn.net/u013125633/article/details/46757641
5. How to remove the box when editing the py file in sublime
Python will try its best to run your code
Unlike compiled languages, Python does not fully check the legality of code before running it. This allows Python to do a lot of cool things that cannot be done in other languages, such as dynamically defining functions at runtime. Of course, this is quite flexible and very powerful
print("\t", end='') tab character
The default behavior of print() is to print and wrap
print('', end='') newline
1. Python programmers usually refer to built-in functions as BIF (built-in functions). The role of the print() BIF is to display the message to the standard output (usually the screen)
There are actually two types of lists in Python: those that can be changed (surrounded by square brackets), and those that cannot be changed once created (surrounded by parentheses). The latter is an immutable list, more commonly known as a tuple. Tuples can be thought of as equivalent to lists, with one difference: once created, the data in the tuple cannot be changed under any circumstances. There is also an understanding that a tuple can be considered as a "constantly lit list"
The with statement leverages a Python technique called the context management protocol
2. Python package management tool - Pip
Download address: https://github.com/pypa/pip
Unzip the downloaded pip-master.zip, enter the unzip directory and execute python setup.py install, the Pip tool will be installed in the Python installation directory Scripts
Configure the environment variable Path (my Pip installation directory E:\software\Python\Scripts)
Video tutorial: http://www.icoolxue.com/play/1915