We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
def drop_first_last(grades): first, *middle, last = grades return avg(middle)
avg这个函数是那个模块中的呢?我在使用的时候找不到
The text was updated successfully, but these errors were encountered:
avg()不存在与Python内置库中,它应该是作者自己实现的一个函数,但我想没有这个函数的具体实现应该也不会很难看出这个函数的目的。 但如果你需要avg(),请访问作者的代码示例仓库 https://github.com/dabeaz/python-cookbook/blob/6e46b78e5644b3e5bf7426d900e2203b7cc630da/src/7/functions_that_accept_any_number_of_arguments/example.py 。
Sorry, something went wrong.
作者在7.1节定义了avg函数
avg
No branches or pull requests
def drop_first_last(grades):
first, *middle, last = grades
return avg(middle)
avg这个函数是那个模块中的呢?我在使用的时候找不到
The text was updated successfully, but these errors were encountered: