How to name functions in python
This article mainly shows you "how to name functions in python", the content is simple and easy to understand, clear organization, I hope to help you solve doubts, let Xiaobian lead you to study and learn "how to name functions in python" this article bar.
naming technique
Reading the code today, I found a good way to name functions:
def request(_argv):
So you can see at a glance in the body of the function which are local variables and which are passed in as parameters, similar to putting g in front of global variables.
1. Python is simple and easy to use. Compared with C/C++, Java, C#and other traditional languages, Python has less strict requirements for code format;2. Python is open source, everyone can see the source code, and it can be ported to many platforms;3. Python is object-oriented and can support process-oriented programming and object-oriented programming; Python is an interpreted language, Python programs do not need to be compiled into binary code, you can run programs directly from the source code;5, Python powerful, has a large number of modules, basically able to achieve all common functions.
The above is all the content of "how to name functions in python", thank you for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!