Commit 77314b87 by BellCodeEditor

save project

parent 76b516e0
Showing with 3 additions and 1 deletions
......@@ -8,5 +8,7 @@ with open(r'C:\Users\玛酷机器人编程中心\Desktop\test.txt','a',encoding=
filel.write('李明:15本\n')
filel.write('小强:12本\n')
with open(r'C:\Users\玛酷机器人编程中心\Desktop\test.txt','r',encoding='utf-8') as filel:
for
for data in filel:
if '小强:12本\n' in filel:
print('小强:10本\n')
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