You are using Python 3 specific syntax in Python 2.
The *
syntax for extended iterable unpacking in assignments is not available in Python 2.
See Python 3.0, new syntax and PEP 3132.
Use a function with *
splat argument unpacking to simulate the same behaviour in Python 2:
def unpack_three(arg1, arg2, *rest):
return arg1, arg2, rest
name, email, phone_numbers = unpack_three(*user_record)
or use list slicing.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…