Commit 4b2bc314 by BellCodeEditor

save project

parent ec189aae
Showing with 9 additions and 2 deletions
with open(r"C:\Users\ASUS\Desktop\捐赠明细.txt","r",encoding="utf-8") as file: with open(r"C:\Users\ASUS\Desktop\捐赠明细.txt","r",encoding="utf-8") as file:
...@@ -9,4 +9,11 @@ for i in a: ...@@ -9,4 +9,11 @@ for i in a:
s=0 s=0
for l in data[1:]: for l in data[1:]:
s=s+int(l) s=s+int(l)
print(s) result=data[0]+str(l)+'/n'
final_s.append(resunt)
with open(r"C:\Users\ASUS\Desktop\捐赠明细.txt","a",encoding="utf-8") as file:
a=file.readlines()
#print(s)
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