Software Tools
These simple functions in Python, you should not be embarrassed again
1. Function A function in Python is a code segment to achieve a certain function, which can be reused. That is, don t reinvent the wheel in the future, just use that function when you encounter that scenario, which is functional programming Next, I define a my_func, pass in a Hello World, and then print a Hello World def my_func(message): print('Got a message: {}'.format(message)) # my_func() my_func('Hello World') # Got a message: Hello World Simple knowledge points def is the declaration of th