Commit 9bb196cb by BellCodeEditor

auto save

parent 494b4506
Showing with 4 additions and 4 deletions
...@@ -5,6 +5,6 @@ ...@@ -5,6 +5,6 @@
#with open(r'C:\Users\EDZ\Desktop\test.txt','a',encoding='utf-8') as file: #with open(r'C:\Users\EDZ\Desktop\test.txt','a',encoding='utf-8') as file:
#file.write('小兰:12本\n') #file.write('小兰:12本\n')
file1=open(r'C:\Users\EDZ\Desktop\qwq.txt','r',encoding='utf-8') file1=open(r'C:\Users\EDZ\Desktop\qwq.txt','r',encoding='utf-8')
a=file1.read() for data in file1:
print(a) if '1' in data:
file1.close() print('shit')
\ No newline at end of file \ 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