Commit 5d9b6784 by BellCodeEditor

save project

parent de31d9bf
Showing with 2 additions and 5 deletions
with open(r'c:\Users\Administrator\Desktop\sales_list.txt','r',encoding='utf-8')as file: a=open(r'C:\Users\Administrator\Desktop\a.txt','w',encoding='utf-8')
a=file.readlines() a.write('小兰:12本')
for i in a:
new_i=i.split()
print(new_i[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