Commit a5449552 by BellCodeEditor

save project

parent 982b3141
Showing with 5 additions and 2 deletions
......@@ -10,4 +10,8 @@ with open(r"E:\编程\测试测试.txt",'r',encoding="utf-8") as files1:
for i in a:
data= i.split()
print([1:])
\ No newline at end of file
sum=0
for sales in data[1:]:
sum=sum+int(sales)
result = data[0]+str(sum)
print(result)
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