Commit dcb390a6 by BellCodeEditor

save project

parent aee22136
Showing with 8 additions and 10 deletions
with open(r'c:\Users\Administrator\Desktop\sales_list.txt','r',encoding='utf-8')as file:
a=file.readlines()
for i in a:
data=i.split()
print(data)
\ No newline at end of file
a=['你好啊\n','悟空\n','我在贝尔编程学python\n']
with open(r'c:\Users\Administrator\Desktop\hello.txt','a',encoding='utf-8') as file:
file.writelines(a)
......@@ -13,5 +13,8 @@
王娇 12 11 12 12 15 35 23 11
ith open(r'c:\Users\Administrator\Desktop\sales_list.txt','r',encoding='utf-8')as file:
a=file.readlines()
with open(r'c:\Users\Administrator\Desktop\sales_list.txt','r',encoding='utf-8')as file
a=file.readlines()
for i in a:
print(i)
\ No newline at end of file
data=i.split()
print(data)
\ 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