Commit 28925d6a by BellCodeEditor

save project

parent a1df72e6
Showing with 6 additions and 5 deletions
with open(r'c:\Users\玛酷机器人\Documents\lesson13-1\sales_list.txt','r',encoding='utf-8') as a:
c=a.readlines()
for i in c:
x=0
for i in c:
b=i.split()
print(b[1:])
#print(b[1:])
for sales in b[1:]:
x=x+int(sales)
print(x)
......
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