Commit ce3327ac by BellCodeEditor

save project

parent 6ebf7824
Showing with 2 additions and 5 deletions
with open(r"c:\Users\Lenovo、\Documents\lesson13-1\sales_list.txt","r",encoding="utf-8") as file1: with open(r"c:\Users\Lenovo、\Documents\lesson13-1\sales_list.txt","r",encoding="utf-8") as file1:
a=file1.readlines() a=file1.readlines()
print(type(a[3:5])) print(type(a[1:]))
print(a[3:5]) print(a[1:])
for i in a:
print(i)
\ 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