Commit 1a758766 by BellCodeEditor

save project

parent bcdc1add
Showing with 4 additions and 3 deletions
...@@ -12,8 +12,8 @@ with open(r"C:\Users\Windows\Desktop\新建文本文档.txt","a",encoding="utf-8 ...@@ -12,8 +12,8 @@ with open(r"C:\Users\Windows\Desktop\新建文本文档.txt","a",encoding="utf-8
with open(r"C:\Users\Windows\Desktop\新建文本文档.txt","r",encoding="utf-8") as file: with open(r"C:\Users\Windows\Desktop\新建文本文档.txt","r",encoding="utf-8") as file:
for data in file: for data in file:
if "小强12本" in data: if "小强:10本" in data:
print("小强12本在") print("小强10本在")
if "小兰12本" in data: if "小兰12本" in data:
print("小兰12本在") print("小兰12本在")
\ 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