How can I denote unused function arguments?

前端 未结 7 1782
梦谈多话
梦谈多话 2020-12-08 01:54

When \"deconstructing\" a tuple, I can use _ to denote tuple elements I\'m not interested in, e.g.

>>> a,_,_ = (1,2,3)
>>> a
1         


        
7条回答
提交回复
热议问题