Commit ad77e972 by BellCodeEditor

auto save

parent 8e3f838c
Showing with 102 additions and 4 deletions
...@@ -14,8 +14,106 @@ ...@@ -14,8 +14,106 @@
# a=file1.read() # a=file1.read()
# print(a) # print(a)
with open(r'C:\Users\Administrator\Desktop\test.txt','r',encoding='utf-8')as file1: # with open(r'C:\Users\Administrator\Desktop\test.txt','r',encoding='utf-8')as file1:
for data in file1: # for data in file1:
if"xiaoqiang:10ben"in data: # if"xiaoqiang:10ben"in data:
print('shujuzaiwenjianzhon') # print('shujuzaiwenjianzhon')
file = open (r"C:\Users\kk\Desktop\test.txt",'w',encoding='utf—8' )
file.write('werdgtfsdg')
file.close()
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