Commit efcb174a by BellCodeEditor

save project

parent 79df07dd
Showing with 5 additions and 4 deletions
...@@ -19,7 +19,7 @@ with open(r"C:\\Users\\Administrator\\Desktop\\test.txt","r",encoding="utf-8") a ...@@ -19,7 +19,7 @@ with open(r"C:\\Users\\Administrator\\Desktop\\test.txt","r",encoding="utf-8") a
a=file.read() a=file.read()
print(a) print(a)
''' '''
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 file1:
for date in file: for date in file1:
if"小强:10本"in date: if '小强:10本' in date:
print("在里面") 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