Commit 86a4d052 by BellCodeEditor

save project

parent 94344376
Showing with 2 additions and 1 deletions
...@@ -5,5 +5,5 @@ ...@@ -5,5 +5,5 @@
with open(r"C:\Users\Administrator\Desktop\test.txt","r",encoding="utf") as aw: with open(r"C:\Users\Administrator\Desktop\test.txt","r",encoding="utf") as aw:
for i in aw : for i in aw :
if "小强:12本" in aw: if "小强:12本" in 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