Commit 4c19bfc0 by BellCodeEditor

auto save

parent d122c2d9
Showing with 5 additions and 2 deletions
...@@ -7,6 +7,8 @@ file1=open(r'C:\Users\Administrator\Desktop\cl.txt','r',encoding='utf-8') ...@@ -7,6 +7,8 @@ file1=open(r'C:\Users\Administrator\Desktop\cl.txt','r',encoding='utf-8')
#file1.write('小强:12本\n') #file1.write('小强:12本\n')
#file1.write('李明:15本\n') #file1.write('李明:15本\n')
a=file1.read() a=file1.read()
c=''
print(a) print(a)
for i in a:
if '小强:12本' in a:
a.replace('2','1')
file1.close()
\ 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