Commit 93695532 by BellCodeEditor

auto save

parent a7ae0341
Showing with 10 additions and 7 deletions
ww=open(r'c:\Users\29018\Documents\lesson13-1\sales_list.txt','w',encoding='utf-8')
ww.write('悟空 122 34 67\n积极 23 90 89')
ww.close()
ww=open(r'c:\Users\29018\Documents\lesson13-1\sales_list.txt','r',encoding='utf-8') ww=open(r'c:\Users\29018\Documents\lesson13-1\sales_list.txt','r',encoding='utf-8')
b=ww.read() b=ww.readlines()
print(b) print(b)
\ No newline at end of file for i in b:
print(i)
ww=open(r'c:\Users\29018\Documents\lesson13-1\sales_list.txt','r',encoding='utf-8') 悟空 122 34 67
b=ww.read() 积极 23 90 89
print(b) \ No newline at end of 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