qq_慕勒7425684
2022-10-29 21:26
def info(**kwargs): names = kwargs('names') gender = kwargs('gender') age = kwargs('age') num = 0 for o in names: print (o) print gender[num] print age[num] num += 1 info(names = ['Alice','Bob'],gender = ['girl','boy'],age = [12,9])
函数里面取值用中括号[ ] 不是用小括号( )
names = kwargs['names']
gender = kwargs['gender']
age = kwargs['age']
Python3 入门教程(新版)
154149 学习 · 1075 问题
相似问题