Py学习  »  Python

Python 2中的可变长度optionals参数(*args)导致错误

Arvinth • 5 年前 • 1551 次点击  

我试图在Python2中运行下面的代码,但出现无效语法错误。

    columns = ["col1"]
    funcs = val_to_list(funcs)
    exprs = []

    for col_name in columns:
        for func in funcs:
            exprs.append((func, (col_name, *args)))

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/56098
 
1551 次点击  
文章 [ 1 ]  |  最新文章 5 年前