Commit 33c570aa by BellCodeEditor

save project

parent 11f46a98
Showing with 3 additions and 2 deletions
......@@ -9,8 +9,9 @@ for i in a:
sum=0
for j in data[1:]:
sum=sum+int(j)
total+=sum
result.appendprint(data[0]+''+str(sum)+'\n')
result.append('縂和:'+str(total))
with open(r'c:\Users\Administrator\Documents\lesson13-1\1.txt','w',encoding='utf-8') as file:
file.writelines(result)
\ No newline at end of file
file.writelnes(result)
\ 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