Getting started with the day10 function
Goal: Master the way of writing functions and the basic use of functions.
Summary today:
- Get to know the function
- Function parameters
- The return value of the function
Reminder: Since there are more content yesterday, in order to reduce the pressure on everyone's study, the curriculum content designed today will be less.
Article Directory
1. Get to know the function
What exactly is a function?
A function can be regarded as a collection of a lot of function codes.
def 函数名():