courses = ['python', 'java'] student_info(courses) def student_info(*args, **kwargs): print(args) print(kwargs) student_info(courses, info) # 打印结果 (['python', 'java'], {'name': 'eunice', 'age': 18}) {} # 解包 student_info(*courses, **info) # 打印结果 ('python', 'java') {'name': 'eunice', 'age': 18}