📜  元组参数函数 python 为 None - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:57.728000             🧑  作者: Mango

代码示例1
def func(self, args):
    defaultargs = (1, 2, 3)
    args = tuple(map(lambda x, y: y if y is not None else x, defaultargs, args))