Commit 8e3f2776 by BellCodeEditor

save project

parent 845b8f21
Showing with 4 additions and 3 deletions
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
# a=flie.read() # a=flie.read()
# print(a) # print(a)
with open(r"C:\Users\86186\Desktop\text.txt","r",encoding="utf-8")as flie: with open(r"C:\Users\86186\Desktop\text.txt","r",encoding="utf-8")as flie:
b=flie.read() for i in flie:
for b in flie: print(i)
if "小强: 12本"in b and "小兰:12本"in b: if "小强: 12本\n"==i:
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