Commit 481e8eda by BellCodeEditor

save project

parent 5ec53ebb
Showing with 11 additions and 0 deletions
a=['你好呀\n','悟空\n','我在贝尔编程学python\n']
with open(r'C:\Users\Administrator\Desktop\hello.txt','a',encoding='utf-8') as file:
file.writelines(a)
\ No newline at end of file
with open(r'C:\Users\Administrator\Desktop\sales_list.txt','r',encoding='utf-8')as file1:
a=file1.readline()
#print(a)
for i in a:
s=i.split()
print(s)
\ 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