Commit 0035712f by BellCodeEditor

save project

parent 1c23520e
Showing with 2 additions and 1 deletions
...@@ -6,6 +6,6 @@ with open(r'c:\Users\Admin\Documents\lesson13-1\sales_list.txt','r',encoding='ut ...@@ -6,6 +6,6 @@ with open(r'c:\Users\Admin\Documents\lesson13-1\sales_list.txt','r',encoding='ut
sum=0 sum=0
for sales in new_i[1:]: for sales in new_i[1:]:
sum=sum+int(sales) sum=sum+int(sales)
xjb2=new_i[0]+str(sum) xjb2=new_i[0]+' '+str(sum)+"元"
print(xjb2) print(xjb2)
\ 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