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