p = (1,2,3) x,y,z = p print(x) print(y) print(z) print(" ") data = ['chichung',23,176,(1996,4,8)] a,b,c,(d,e,f) = data print(a) print(b) print(c) print(d) print(e) print(f) print(" ") str = "ABC" a,b,c = str print(a) print(b) print(c)
warning:如果元素不匹配,将得到错误提示