diff --git a/func.py b/func.py index 3dfcc34..820a2cd 100644 --- a/func.py +++ b/func.py @@ -13,4 +13,11 @@ def shujiage(): total.append(a) return total jiage=shujiage() -print(jiage) \ No newline at end of file +print(jiage) +def qiuhe(liebiao): + s=0 + for i in liebiao: + s=s+i + return s +zongjia=qiuhe(jiage) +print(zongjia) \ No newline at end of file