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