001、
>>> list1 = [("aa",100, 400), ("bb", "kk", "yy"), (33, 400, 500)] >>> for i, j, k in list1: ## 利用列表、元组同时传入多个参数 ... print(i,k) ... aa 400 bb yy 33 500 >>> for i, j, k in list1: ## 同时传入多个参数 ... print(i, j, k) ... aa 100 400 bb kk yy 33 400 500
标签:aa,...,bb,传入,python,list1,参数,400,500 From: https://www.cnblogs.com/liujiaxin2018/p/16894495.html