Commit a5951f53 by BellCodeEditor

save project

parent 05e7d622
def skr():
total = []
while True:
try:
unit= int(input("请输入:"))
except:
print('数字')
else:
if unit == -1:
break
else:
total.append(unit)
return total
#uk = skr()
def xj(na):
k=0
for i in na:
k+=i
return k
#s=xj(uk)
#print(s)
\ No newline at end of file
import func
uk=func.skr()
s=func.xj(uk)
print(s)
\ 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