如何使用 Python 中的变量调用列表?

How do you call a list using a variable in Python?

我试图在一个函数中调用一个列表,但问题是我需要调用和影响数百个列表。我想不出不引发 TypeErrorNameError

的方法

没有理由不能在一个函数中调用数百个列表。

def list_manager(list_of_lists):
    for item in list_of_lists:
        # do anything you want with your list here