形参前面加一个星号,传入的参数转换成元组
def print_everything(*args):
for count, thing in enumerate(args):
print('{0}.{1}'.format(count,thing))
print_everything('apple','banana','cabbage')#参数传入元组
def print_everythindef print_everything(*args):
for count, thing in enumerate(args):
print('{0}.{1}'.format(count,thing))
print_everything('apple','banana','cabbage')#参数传入元组
def print_everythin