Commit f4ba1b81 by BellCodeEditor

save project

parent 9b569650
Showing with 6 additions and 2 deletions
......@@ -7,4 +7,8 @@ with open(r"C:\Users\LX\Desktop\wen.txt",'a',encoding='utf-8') as a:
a.write("小兰:12本\n")
with open(r"C:\Users\LX\Desktop\wen.txt",'r',encoding='utf-8') as a:
c=a.read()
print(c)
\ No newline at end of file
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