How to use tuple unpack in Python3
This article mainly introduces the Python3 tuple unpack how to use, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
Tuple unpack in Python3
> > a, b, * rest = range (10) > > a0 > > b1 > > rest [2, 3, 4, 5, 6, 7, 8, 9] > first, second, * rest, last = range (10) > > first0 > > second1 > > last9 > > rest [2, 3, 4, 5, 6, 7, 8] Thank you for reading this article carefully. I hope the article "how to use tuples unpack in Python3" shared by the editor will be helpful to you. At the same time, I hope you will support it. Pay attention to the industry information channel, more related knowledge is waiting for you to learn!