Commit d5764deb by BellCodeEditor

save project

parent adc6f246
Showing with 8 additions and 2 deletions
...@@ -3,4 +3,10 @@ with open(r"C:\Users\Administrator\Desktop\新建文本文档.txt","r",encoding= ...@@ -3,4 +3,10 @@ with open(r"C:\Users\Administrator\Desktop\新建文本文档.txt","r",encoding=
#print(type(y[3:5])) #print(type(y[3:5]))
for i in y: for i in y:
c=i.split() c=i.split()
print(c[0]) print(c[0])
\ No newline at end of file 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