What is the basic syntax of Python full-stack development
Editor to share with you what the basic syntax of Python full-stack development is, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Introduction to No.1 Python language
See Baidu encyclopedia for details.
What kind of language is No.2 Python?
The details are in Baidu encyclopedia.
What can No.3 Python do?
Network applications, desktop applications, system operation and maintenance, machine learning, scientific computing.
Network application Django/Flask/Tornado
Desktop application PyQt/PySide/wxPython/PyGTK
System operation and maintenance psutil/IPy/dnspython/difflib
Machine learning Scikit-Learn/Statsmodels/PyMC/Shogun
Scientific computing NumPy/SciPy/Matplotlib
Advantages and disadvantages of No.4 Python
Simple, efficient development, high-level language, cross-platform.
Slow speed, code can not be encrypted, GIL lock.
Installation of No.5 Python
Download Anaconda from Windows, click and click.
Linux download Anaconda, extract, install.
No.6 comment
Single-line comment # one line
Multiline comments "" pile "OR"pile"
No.7 keyword
Identifiers with special functions, which are called keywords
Import keywordprint (keyword.kwlist) No.8 formatted symbol remarks c character s string I signed decimal integer d unsigned decimal integer o octal integer x hexadecimal integer (lowercase letter) Xhexadecimal integer (uppercase letter) f floating point No.9 variable
The variable of Python is a post-it note
Variable names can only be a combination of letters, numbers, and underscores
The first character of a variable cannot be a number
Variable name cannot be the same as keyword
No.10 operator
Arithmetic operator
Operator remarks + add-subtract * multiply * * power / divide / / divide% module
Assignment operator
Operator example = a = 1 words a + = 1 a + 1 words words a-= 1 a = a-1 words words a = 2 a = a 2 minutes cards a = 2 a = a 2cm cycles a / = 2a = a / 2a / 2a / 2a = a / 2% accounta% = 2a = a% 2
Relational operator
Operator remarks = equal to! = not equal > greater than = greater than or equal to