A function doesn't always have to display its output directly. Instead, it can
process some data and then return a value or set of values. The value the
function returns is called a return value. The return statement takes a value
from inside a function and sends it back to the line that called the function.
---来自 《python crash course》
函数无需总是把输出直接显示出来,相反,函数可以处理一些数据,然后返回一个或者一组值。函数返回的值就叫做‘返回值’ return语句将从函数中提取一个值然后送回你调用函数的地方。
----以上是我自己的翻译
从中可以看出,return 语句的作用是:函数一般都是用来处理数据的,这些数据有时候得到的结果是一个值或者几个值,那么怎么才能提取你想要的值?通过 return语句就可以提取你想要的值,然后把这个值给到你调用函数的地方。
Tips:很多中文的翻译你可能看的不明白,但是一旦阅读了英文原著,你就会豁然开朗。