Commit f4ba1b81 by BellCodeEditor

save project

parent 9b569650
Showing with 5 additions and 0 deletions
...@@ -8,3 +8,7 @@ with open(r"C:\Users\LX\Desktop\wen.txt",'a',encoding='utf-8') as a: ...@@ -8,3 +8,7 @@ with open(r"C:\Users\LX\Desktop\wen.txt",'a',encoding='utf-8') as a:
with open(r"C:\Users\LX\Desktop\wen.txt",'r',encoding='utf-8') as a: with open(r"C:\Users\LX\Desktop\wen.txt",'r',encoding='utf-8') as a:
c=a.read() c=a.read()
print(c) print(c)
with open(r"C:\Users\LX\Desktop\wen.txt",'r',encoding='utf-8') as a:
for i in a:
if "小强:10本" in 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