Commit 7cdd0266 by BellCodeEditor

save project

parent 6994b80e
...@@ -11,15 +11,13 @@ def a(): ...@@ -11,15 +11,13 @@ def a():
print('请输入一个数字') print('请输入一个数字')
else: else:
total.append(unit) total.append(unit)
print(total)
return total return total
r=a() r=a()
def b(r): def b(r):
sum=0 sum=0
for i in r: for i in r:
sum+=i sum+=i
return sum
print(sum) print(sum)
ruturn sum
# k=r[0] # k=r[0]
# print(k) # print(k)
\ No newline at end of file
import func
date=func.a()
score=func.b(date)
\ 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