Commit 0794be9d by BellCodeEditor

save project

parent f544a459
Showing with 8 additions and 2 deletions
......@@ -3,5 +3,4 @@ with open(r"c:\Users\Administrator\Documents\lesson13-1\sales_list.txt","r",enco
#print(b)
for i in b:
print(i)
\ No newline at end of file
with open(r"c:\Users\Administrator\Documents\lesson13-1\sales_list.txt","r",encoding="utf-8") as a:
b=a.readlines()
#print(b)
for i in b:
c=i.split()
print(c[0])
print(c[1:])
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