元组的序列解包range对象的序列解包迭代对象的序列解包列表的序列解包字典的序列解包序列解包与遍历序列解包的其它用法 元组的序列解包 x,y,z = (1,2,3) print(x,y,z) 1 2 3 a_tuple = 4,5,6 #(4,5,6) (x,y,z) = a_tuple print(x,y,z) 4 5 6 range对象的序列解包 x,y,z,m,n = range(5) print(x,y,z,m,n) 0 1 2 3 4 迭代对象的序列解包 x,y,z,m,n = map…