函数
函数名实质上就是一个指向函数对象的一个引用,完全可以将函数名赋值给另一个名字,给函数起一个别名。 每个函数有不同的参数类型,参数个数。
i_am_abs = abs
i_am_abs(-10)
>>10
内置函数:
abs():return the absolutely value of a number
int(): turn the other type of data into a integer
max():return the maximum of a list of number
sum(): return the sum of a list of number
float(): accep a string and return a float
str(): accept a not string data type and return a string