【发布时间】:2019-05-20 23:05:33
【问题描述】:
我有旧的 Python 2 代码,其中包含
def __init__(self, (gv_to_python, python_to_gv), values, bgl_type='object') :
在 Python 3 中使用它会产生语法错误(2to3 无法修复此问题)。
此 Python 2 函数定义的 Python 3 等效项是什么?
【问题讨论】:
-
错误是什么?
标签: python python-3.x list arguments tuples