Commit d8a47d69 by BellCodeEditor

save project

parent b9ea34e7
def nn() def nn():
total = [] total = []
while True: while True:
u= input("请输入:") u= input("请输入:")
...@@ -11,16 +11,16 @@ def nn(): ...@@ -11,16 +11,16 @@ def nn():
print('重输') print('重输')
else: else:
total.append(u) total.append(u)
finally finally:
print('**************************************') print('**************************************')
print(total) print(total)
def sun(u): def sun(un):
cou=0 cou=0
for i in u: for i in un:
cou=cou+i cou=cou+i
return cou return cou
pr=nn() # pr=nn()
pa=sun(pr) # pa=sun(pr)
print(str(pr)) # print(str(pr))
import func
d=func.nn()
s=func.sun(d)
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