Commit 51580906 by BellCodeEditor

auto save

parent 8143943c
Showing with 20 additions and 0 deletions
file=open(r'C:\Users\Administrator\Desktop\test.txt','w',encoding='utf-8')
file.write('a=a\n')
file.write('b=b')
file.close()
with open(r'C:\Users\Administrator\Desktop\test.txt','r',encoding='utf-8')as file:
for data in file:
if'a=a'in data:
print('数据')
\ 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