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