Commit b3f51508 by BellCodeEditor

save project

parent ad11303c
Showing with 9 additions and 2 deletions
with open(r'C:\Users\广场一号\Desktop\ssles_list.txt','r',encoding='utf-8')as file:
a=file.readlines()
print(a)
\ No newline at end of file
for i in a:
data = i.split()
#print(data[1:])
sum=0
for ssles in data[1:]:
sum=sum+int(ssles)
z = data[0]+str(sum)
print(z)
\ 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