[Python] zip and * zip

https://www.cnblogs.com/kenny-feng/p/11368477.html
zip (): Compression
zip (): extract the
Here Insert Picture Description
zip (a, b): a and b are the corresponding elements are combined into tuples. However, if we see the results, required
zip () function

* zip (a, b): Let zip visualization
Here Insert Picture Description
but if the first t = zip (a, b) , then Print ( T), then there is no return value, because the zip () * in and zip are used in conjunction, can not be they are separated by. And print (* zip (t)) is another result, namely print (* zip (zip (a , b))):

Here Insert Picture Description

Published 62 original articles · won praise 1 · views 3800

Guess you like

Origin blog.csdn.net/Trance95/article/details/104542525
Recommended