the path to Python is elegant, clear and simple
English pronunciation:/?pa?θ?n/American pronunciation:/?pa?θɑ?n/), is an object-oriented interpretation of computer programming language, by the Dutch Guido van Rossum invented in 1989, the first public release issued in 1991Import this
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren ' t special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should is one--and preferably only one--obvious the-do it.
Although that is obvious at first unless you ' re Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it could be a good idea.
Namespaces is one honking great idea – let's do more than those!
1. Compiled and interpreted languages
Interactive command-line IDE
Naming rules:variable names can only be any combination of letters, numbers, or underscores the first character cannot be a number
1. The length of the variable name is unrestricted, but the character must be a letter, a number, or an underscore (_), not a space, hyphen, punctuation, quotation mark, or other character.
2. The first character of a variable name cannot be a number, but must be a letter or an underscore.
3.Python is case-sensitive.
4. You cannot use the Python keyword as a variable name.
Python has five standard data types:
- Numbers (digital)
- String (String)
- List (lists)
- Tuple (tuple)
- Dictionary (Dictionary
Command +/Comment Code | Command + D to quickly copy a line of code
First entry into Python