Commit cd46e3db by BellCodeEditor

save project

parent d0031454
Showing with 1 additions and 1 deletions
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
with open(r"C:\Users\丽达玛酷9号\Documents\lesson12-1\diy.txt","r",encoding='utf-8') as file: with open(r"C:\Users\丽达玛酷9号\Documents\lesson12-1\diy.txt","r",encoding='utf-8') as file:
a=file.read() a=file.read()
for data in a: for data in a:
if '小兰:12本' in data: if '小兰12本' in data:
print("jtjf") print("jtjf")
else: else:
print("ytjjt") print("ytjjt")
......
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