Commit 513e02d1 by BellCodeEditor

save project

parent 6bc26f02
Showing with 14 additions and 2 deletions
with open('r''c:\Users\刘释远\Documents\lesson13-1\sales_list.txt','r',encoding=)as h with open(r'c:\Users\刘释远\Documents\lesson13-1\sales_list.txt','r',encoding='utf_8')as h:
\ No newline at end of file a=h.readlines()
for i in a:
wc=i.split()
w=wc[1:]
sum=0
for y in w:
# print(y)
sum=sum+int(y)
print(sum)
\ 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