Commit 1b8799bf by BellCodeEditor

save project

parent 09092090
Showing with 2 additions and 10 deletions
while open(r'c:\Users\6\Documents\lesson13-3\sales_list.txt','r',enoding:'utf-8') as file:
a=file.readlines()
for i in a:
data=i.split()
#sum=0
#for j in range(len(data)):
#sum+=int(data[j])
#print(data[0]+str(sum))
print(data[0])
\ No newline at end of file
with open(r'C:/Users/8/AppData/Roaming/pythonWin/python.exe','r',enoding:'utf-8')
\ 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