Commit ed47bff9 by BellCodeEditor

save project

parent ff9dd3ea
Showing with 6 additions and 2 deletions
......@@ -2,4 +2,8 @@ with open(r'c:\Users\玛酷机器人\Documents\lesson13_2\sales_list.txt','r',en
a=sss.readlines()
for i in a:
w=i.split()
print(w[1:])
\ No newline at end of file
m=0
for s in w[1:]:
m=m+int(s)
r=w[0]+str(s)
print(r)
\ 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