Commit 8e3f2776 by BellCodeEditor

save project

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