Commit d5764deb by BellCodeEditor

save project

parent adc6f246
Showing with 7 additions and 0 deletions
...@@ -4,3 +4,9 @@ with open(r"C:\Users\Administrator\Desktop\新建文本文档.txt","r",encoding= ...@@ -4,3 +4,9 @@ with open(r"C:\Users\Administrator\Desktop\新建文本文档.txt","r",encoding=
for i in y: for i in y:
c=i.split() c=i.split()
print(c[0]) print(c[0])
a=0
for j in c[1:]:
a=a+int(i)
d=c[0]+str(a)
print(d)
a
\ 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