Commit c21401b0 by BellCodeEditor

save project

parent f65aff53
Showing with 12 additions and 5 deletions
...@@ -11,7 +11,14 @@ def a(): ...@@ -11,7 +11,14 @@ def a():
print("输入错误") print("输入错误")
else: else:
total.append(unit) total.append(unit)
print(total) return total
a()
b=a() def sum(c):
print(b[0]) sum1=0
\ No newline at end of file for i in c:
sum1+=i
return sum1
d=a()
b=sum(d)
print(b)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment