Commit 903900a8 by BellCodeEditor

auto save

parent 19d90a5a
Showing with 3 additions and 6 deletions
...@@ -11,8 +11,5 @@ ...@@ -11,8 +11,5 @@
# 关闭 # 关闭
# file.close() # file.close()
with open(r'C:\Users\Administrator\Desktop\test.txt','r',encoding='utf-8') as file: with open(r'C:\Users\Administrator\Desktop\test.txt','r',encoding='utf-8') as file:
# a=file.read() a=file.read()
# print(a) print(a)
for data in file: \ No newline at end of file
if '小兰:12本' 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