Commit a1b7dae1 by BellCodeEditor

save project

parent 2a6bce10
def a(): a=open(r'C:\Users\多多\Documents\lesson11_1\新建文本文档.txt','r',encoding='utf-8')
b=a.readlines()
f=0
g=[]
a.close()
for i in b:
c=i.split()
for d in c[1:]:
d=int(d)
f=f+d
g.append(str(f))
a=open(r'C:\Users\多多\Documents\lesson11_1\文本文档.txt','w',encoding='utf-8')
a.writelines(g)
a.close()
++ "b/\346\226\207\346\234\254\346\226\207\346\241\243.txt"
悟空 12 15 11 12 13 21 27 12 15 30 22 26 15 30 22 26 15 12 21 23
悟空 12 15 11 12 13 21 27 12 15 30 22 26 15 30 22 26 15 12 21 23
王大锤 0 1 0 2 250 13 0 0 0 0 0 0 0 00 00 0 0 0 0 0 0 0 0 00 0 0 0 00 0 0
\ 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