Commit ffa8f922 by BellCodeEditor

save project

parent 76389cca
Showing with 2 additions and 0 deletions
...@@ -10,5 +10,6 @@ a=file1.read() ...@@ -10,5 +10,6 @@ a=file1.read()
print(a) print(a)
for date in file1: for date in file1:
if'小丽:11本'in date: if'小丽:11本'in date:
date=date.replace('小丽:11本','小丽:10本')
print('数据在文件中') print('数据在文件中')
file1.close() 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