如何在Python函数中使用整个列表作为参数?

Nor*_*ora -2 python list

我试图在Python中创建一个将列表作为输入的函数,并返回列表中所有数字的倍数:

def multiply_list(numbers):
    product = 1

    for int in numbers:
        product = product*numbers[int]

    return product
Run Code Online (Sandbox Code Playgroud)

我尝试使用以下方法测试它:

ints = [1, 7, 3, 4]

print(multiply_list(ints))
Run Code Online (Sandbox Code Playgroud)

但是,我得到一个"列表索引超出范围"-exception.出于某种原因,我无法弄清楚为什么我会得到这个例外.任何意见,将不胜感激!

Mit*_*lin 7

for int in numbers:
        product = product*int
Run Code Online (Sandbox Code Playgroud)

int是实际项目,而不是索引