Python学习笔记(1)

1 def sum_args(*args):
2     return sum(args))
3     
4 def run_with_positional_args(func, *args):
5     return func(*args)
6 
7 run_with_positional_args(sum_args, 1, 2, 3, 4)

 

    原文作者:萤火虫小巷
    原文地址: https://www.cnblogs.com/yhcxx/p/10791289.html
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞