Commit 75020cbd by BellCodeEditor

auto save

parent 5e73fe4e
Showing with 4 additions and 0 deletions
...@@ -5,3 +5,7 @@ a.close() ...@@ -5,3 +5,7 @@ a.close()
a=open(r"C:\Users\maku\Desktop\text.txt",'a',encoding='utf-8') a=open(r"C:\Users\maku\Desktop\text.txt",'a',encoding='utf-8')
a.write('\n小强:12本\n小明:12本') a.write('\n小强:12本\n小明:12本')
a.close() a.close()
with open(r"C:\Users\maku\Desktop\text.txt",'r',encoding='utf-8')as a:
if '小强' in
s=a.read()
print(s)
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