Commit 903900a8 by BellCodeEditor

auto save

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