How can i unpack multiple returns from a function in Python

后端 未结 0 1880
星月不相逢
星月不相逢 2020-12-06 14:22

I have a function that returns 4 elements:

def myFunc(x):
    ...
    return a,b,c,d

I want to assign back each return to a variable like:

相关标签:
回答
  • 消灭零回复
提交回复
热议问题