Commit d3eae971 by BellCodeEditor

save project

parent b34d9ca6
Showing with 6 additions and 5 deletions
......@@ -4,7 +4,8 @@
# file1.write('李明:15本\n')
# file1.write('小兰:12本\n')
# file1.write('小丽:11本\n'))#
1.replace('12本','11本')
1.replace('12本','14本')
new_1+=1
print(new_1)
\ No newline at end of file
new_data=''
with open(r'C:\Users\Administrator\Desktop\1.txt','r',encoding='utf-8') as file1:
for data in file1:
if '小丽:11本' in data:
\ 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