day 10 homework

2、寫函數,接收n個數字,求這些參數數字的和。 def sum_func(*args): total = 0 for i in args: total += i return total print(sum_func(1,2,3,8,23,6)) 3、讀代碼,回答:代碼中,打印出來的值a,b,c分別是什麼? a = 10 b = 20 def test5(a,b) print(
相關文章
相關標籤/搜索