Commit 168b7702 by BellCodeEditor

save project

parent 78f815c4
Showing with 34 additions and 0 deletions
with open(r'C:\Users\张槿\Documents\lesson13-1\sales_list.txt','r',encoding='utf-8') as file:
hg=file.readlines()
for i in hg:
data= i.split()
print(data)
with open(r'C:\Users\张槿\Documents\lesson13-1\sales_list.txt','r',encoding='utf-8') as file:
hg=file.readlines()
for i in hg:
data= i.split()
for sales in data[1:]:
#sales1=int(data)
num=0
new_num=num+int(sales)
print(new_num)
\ 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