Commit da06f520 by BellCodeEditor

auto save

parent 7439c885
Showing with 2 additions and 5 deletions
...@@ -8,7 +8,5 @@ ...@@ -8,7 +8,5 @@
# filel.write('李明:15本\n') # filel.write('李明:15本\n')
# filel.close() # filel.close()
with open(r"C:\Users\mayi_robot\Desktop\test.txt",'r',encoding='utf-8') as filel: with open(r"C:\Users\mayi_robot\Desktop\test.txt",'r',encoding='utf-8') as filel:
for i in filel: a = filel.read()
if "小强:12本" in i: print(a)
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