Commit 411ef1c0 by BellCodeEditor

save project

parent 457f9752
Showing with 7 additions and 7 deletions
...@@ -9,13 +9,13 @@ ...@@ -9,13 +9,13 @@
# File.write('李明:15本\n') # File.write('李明:15本\n')
with open(r'C:\Users\丽达1号\Desktop\A.txt',"r",encoding='utf-8')as File: with open(r'C:\Users\丽达1号\Desktop\A.txt',"r",encoding='utf-8')as File:
for i in File: for i in File:
if '小强:10本' in i: if '小强:12本' in i:
print('在') i= i.replece('小强:12本','小强:11本')
if '小兰:10本' in i: if '小兰:12本' in i:
print('在') i= i.replece('小兰:12本','小兰:14本')
x_x=x_x=i
with open(r'C:\Users\丽达1号\Desktop\A.txt',"r",encoding='utf-8')as File:
File q
......
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