Commit 5233e099 by BellCodeEditor

save project

parent a85b9def
Showing with 6 additions and 1 deletions
......@@ -4,6 +4,10 @@ with open(r'C:\Users\Student-A09\Desktop\tst','r',encoding='utf-8') as a:
data=data.replace('小强,10笨','小强,11笨')
new_data=+data1
with open(r'C:\Users\Student-A09\Desktop\tst','r',encoding='utf-8') as a:
with open(r'C:\Users\Student-A09\Desktop\tst','w',encoding='utf-8') as a:
a.write(new_data)
with open(r'C:\Users\Student-A09\Desktop\tst','r',encoding='utf-8') as a:
b=a.read()
print(a)
\ 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