Commit 8b705821 by BellCodeEditor

save project

parent 232ebc80
Showing with 6 additions and 5 deletions
......@@ -3,9 +3,10 @@ with open (r'c:\Users\Public\Desktop\贝尔编辑器.lnk\lesson13-1\sales_list.t
#print(a)
for i in a:
b = i.splir()
print(b)
#print(b)
#print(b[1:])
sum = 0
for sales in b[1:]
sum = sum + int (sales)
print(sum)
\ No newline at end of file
for sales in b[1:]:
sum = sum + int(sales)
c = b[0]+str(sum)
print(sum)
\ 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