Unpack python tuple with [ ]'s

后端 未结 0 812
無奈伤痛
無奈伤痛 2020-12-01 08:37

I know the canonical way to unpack a tuple is like this

a, b, c = (1, 2, 3)
# or
(a,b,c) = (1, 2, 3)

b

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