Getting started with the day10 function

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.

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 函数名():

Guess you like

Origin blog.csdn.net/qq_49821869/article/details/113752451