Commit a85b9def by BellCodeEditor

save project

parent e8e1b8e2
Showing with 5 additions and 0 deletions
......@@ -2,4 +2,8 @@ with open(r'C:\Users\Student-A09\Desktop\tst','r',encoding='utf-8') as a:
for data in a:
if'小强,10笨'in data
data=data.replace('小强,10笨','小强,11笨')
new_data=+data1
with open(r'C:\Users\Student-A09\Desktop\tst','r',encoding='utf-8') as a:
a.write(new_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