Unpacking and installation package

Unpacking and installation package

1 t1 = (9, 4, 8, 6)
2 x, *y = t1
3 print("x:", x)
4 print("y:", y)
5 print("*y:", *y)

 * Role is to put the hash value list 4,8,6 (-pack)

If we make a copy sequence for these two variables, the bottom will tuple to the demolition, a hash value is split into

principle:

 

* About the unpacking and installation package

 

Guess you like

Origin www.cnblogs.com/GumpYan/p/12291815.html