*args和kwargs是什么意思?
*args**kwargs
def foo(hello, *args):
print hello for each in args:
print eachif __name__ == '__main__':
foo("LOVE", ["lol", "lololol"])LOVE['lol', 'lololol']
红颜莎娜
九州编程
慕容3067478
随时随地看视频慕课网APP
相关分类