Commit d2e948ff by BellCodeEditor

auto save

parent 7beec89d
Showing with 12 additions and 7 deletions
file=open(r'C:\Users\makcoo\Desktop\新建文件夹 (3)sales_list.txt','r',encoding='utf-8') file=open(r'C:\Users\cc\Desktop\lis.txt','w',encoding='utf-8')
a=file.readlines() file.write('sget')
print(a)
file.close() file.close()
for i in a: file=open(r'C:\Users\cc\Desktop\lis.txt','r',encoding='utf-8')
data=i.split() a=file.read()
print(data) print(a)
\ No newline at end of file file.close()
file=open(r'C:\Users\cc\Desktop\lis.txt','r',encoding='utf-8')
for i in file:
if "wu" in i:
print("wu")
\ 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