Commit 2636a210 by BellCodeEditor

auto save

parent 8ff7c893
Showing with 4 additions and 2 deletions
...@@ -12,4 +12,6 @@ with open("C:\\Users\\Administrator\\Desktop\\test.txt",'a',encoding='utf-8') as ...@@ -12,4 +12,6 @@ with open("C:\\Users\\Administrator\\Desktop\\test.txt",'a',encoding='utf-8') as
with open("C:\\Users\\Administrator\\Desktop\\test.txt",'r ',encoding='utf-8') as file: with open("C:\\Users\\Administrator\\Desktop\\test.txt",'r ',encoding='utf-8') as file:
for i in file: for i in file:
if '小兰:12本' in i: if '小兰:12本' in i:
print("数据在") print("数据在")
\ No newline at end of file new_data=''
\ 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