摘要:
add1 = lambda *args: sum(args) # 可以同时传入多个数值 print(add1(1, 4, 6, 8, 9)) # 打印结果 28 阅读全文
posted @ 2019-05-06 11:15
yile
阅读(90)
评论(0)
推荐(0)
摘要:
courses = ['python', 'java'] student_info(courses) def student_info(*args, **kwargs): print(args) print(kwargs) student_info(courses, info) # 打印结果 (['python', 'java'], {'name': 'eunice', 'age': 1... 阅读全文
posted @ 2019-05-06 11:01
yile
阅读(122)
评论(0)
推荐(0)

浙公网安备 33010602011771号