Commit 1ad88d88 by BellCodeEditor

save project

parent fc716948
Showing with 2 additions and 14 deletions
with open(r'c:\Users\makcoo\Desktop\新建文本文档.txt,'r',encoding='utf-8')as file:
a=file.readlines()
final_sum=[]
for i in a:
data=isplit()
sum=0
for sales indata[1:]:
sum=sum=int(sales)
result = data[0]+str(sum)+'\n'
final_sum.append(result)
with open(r'c:\Users\makcoo\Desktop\新建文本文档1.txt,'r',encoding='utf-8')as file:
file.writelines(final_sun)
\ No newline at end of file
print("Hello world")
\ 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