assign unknown number of return values to single variable in python

前端 未结 0 945
悲&欢浪女
悲&欢浪女 2021-02-13 13:50

My function is similar to following

def function(n):
    if n == 1:
        return [1, 2, 3]
    if n == 2:
        return          


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