Python多重赋值技巧
1、多重赋值技巧是一种快捷方式,让你在一行代码中,用列表中的值为多个变量赋值。所以不必像这样:entrepreneur = ['JackMa', 'PonyMa', 'LeiJun']Alibaba = entrepreneur[0]Tencent = entrepreneur[1]Xiaomi = entrepreneur[2]而可以这样:entrepreneur = ['JackMa', 'PonyMa', 'LeiJun']Alibaba, Tencent, Xiaomi = entr