Python is a beautiful language that inspires your love for it. So if you try to join programmers, or you are a little tired of C ++, Perl, Java and other languages, I recommend you try Python. python has many functions that attract programmers. it is easy to learn, object-oriented, bytecode compilation, free and open-source. There is also a runtime check. Complete and fast support for various task extensions. In this article, I want to emphasize some aspects of Python that can save time and maximize productivity. In preparation, I consulted several Pyt.. Python is a beautiful language that inspires users' love for it. So if you try to join programmers, or you are a little tired of C ++, Perl, Java and other languages, I recommend you try Python.
Python has many functions that attract programmers. it is easy to learn, object-oriented, bytecode compilation, free and open-source. There is also a runtime check. Complete and fast support for various task extensions.
Efficient Python
In this article, I want to emphasize some things that Python can save time and maximize productivity. When preparing, I consulted several Pythonists. what are their time-saving skills? Here is the answer...
1. do not use semicolons
The use of semicolons is optional in Python. compared with other object-oriented languages, you do not need to use semicolons after each statement.
This looks simple and does not seem to save much time; however, once your code volume is extended to thousands, these semicolons become distracting and do not need to be typed.
2. find a code editor
Selecting a code editor can save a lot of time. Faced with so many code editors, many new users will feel confused.
It is confusing to use other editors in an editor, so it is a good starting point to select a name. No matter which one you choose, you must support flake8 and PEP8 in real time.
3. follow the Python code specifications
Some good books can help, including:
The above are the time-saving methods shared by 10 Python developers. For more information, see other related articles in the first PHP community!