Commit 521875c4 by BellCodeEditor

save project

parent 93aac526
Showing with 8 additions and 4 deletions
......@@ -6,10 +6,14 @@ def fanc():
break
else:
try:
int(unit)
unit=int(unit)
except:
print('请输入数字:')
else:
total.append(unit)
print(total)
print(fanc())
\ No newline at end of file
return total
total=fanc()
sum1=0
for i in total:
sum1=sum1+i
print(sum1)
\ 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