Elegant way for passing list to function as input arguments with incomplete list/missing list entries

后端 未结 0 2046
悲哀的现实
悲哀的现实 2020-11-21 15:39

I\'m writing a program (see below) where the user can set parameters x[0] and x[1]. Sometimes the user is not setting x[1] as it\'s not always needed (tested with #x[1]=2).

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