Commit 7d00bb4c by BellCodeEditor

save project

parent 99c8848d
Showing with 7 additions and 5 deletions
...@@ -8,7 +8,9 @@ for i in a: ...@@ -8,7 +8,9 @@ for i in a:
num=0 num=0
for r in dada[1:]: for r in dada[1:]:
num+=int(r) num+=int(r)
# w=dada[0]=str(num) w=dada[0]+str(num)
print(dada[0]+':') # print(dada[0]+':')
print(num) # print(num)
print() print(w)
\ No newline at end of file with open(r'c:\Users\Administrator\Documents\lesson13-1\sales_list.txt','a',encoding='utf-8')as file:
\ 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