简单的sequence unpacking

python学习网 2017-08-08 13:16:02

t = (1, 2, ‘hl’)

x, y, z = t

上述方法可用于任何sequence

阅读(808) 评论(0)