Commit 9600f38a by BellCodeEditor

save project

parent e554c214
Showing with 3 additions and 2 deletions
...@@ -2,4 +2,5 @@ new_data='' ...@@ -2,4 +2,5 @@ new_data=''
with open(r'C:\Users\EDY\Desktop\Document.txt','r',encoding='utf-8') as list1: with open(r'C:\Users\EDY\Desktop\Document.txt','r',encoding='utf-8') as list1:
for data in list1: for data in list1:
if'范训豪:14本' in data: if'范训豪:14本' in data:
print('由此条数据') data.replace('范训豪:14本','范训豪:18本')
\ No newline at end of file new_data +=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