Commit 9f50d517 by BellCodeEditor

save project

parent 5e0c56d8
Showing with 11 additions and 10 deletions
with open(r'c:\Users\CDLX\Documents\lesson13-1\sales_list.txt','r',encoding='utf-8') as f:
print(f.read())
#print(f.read())
a = f.readlines()
for i in a:
b = i.split()
c = b[1:]
sum = 0
for d in c:
sum += int(d)
print(sum)
refgsrtugjkhguaejndjhsfkjawbhfashfsddhfesgergesnfwhtw4ntew
dzwedtyujofesaqwtyhujkopuyre3w4ruiopihydesthujkopuhyesrthujio
sertfhjkopugteawdghjkokhydxzsdfgjkl;khydrsazsdbhmolputr5edxfbmkloiu6tesr
sdrtyhujiogvcedsrt6ujionbvcdxrtfyujionbgvctrdfyhujimv gcftryu
drtghujngvfcdtrf67jiomnhcgfdrt67uijnbgvftr5yu8jin bvcdrt67ujion
ddtyuhjngfctr678ujnbgvftr5678u9jmn bvcdtrt6u8jngvdre567y8iojnbgvfdre5
serthjnbgfctrt6y7u89hbgvcdr56yubh vfcdr56u8jnv cdrt56u89jknb vfcrt567ujin
drt6ujinhgftr567yuihb vcfdr5678u9jkngvftr568u9jn vcfe455789iojbhcfse4567uioj
sdfgyujioutreawesdgyikopiyszdghjkl;kuygdrestyhujkopkjytresrdtyuiolpiygrdesdfgyuj
This source diff could not be displayed because it is too large. You can view the blob instead.
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