Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use tuple unpack in Python3

Shulou Source: shulou.com Published: 2022-06-01 04:23:39 09月22日 Update

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!

Tags: Articles value interest at the same time more friends knowledge editing industry information information channels channels reference learning help support Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL OPPO Reno Redmi macOS Xiaomi