Commit 3b6113b1 by BellCodeEditor

save project

parent e8b418b5
Showing with 2 additions and 2 deletions
...@@ -3,5 +3,5 @@ new_data=" ...@@ -3,5 +3,5 @@ new_data="
with open(r"C:\Users\Makcoo-Bellcode\Desktop\test.txt",'r',encoding="utf-8") as file: with open(r"C:\Users\Makcoo-Bellcode\Desktop\test.txt",'r',encoding="utf-8") as file:
for data in file1: for data in file1:
if 'xiaoqiang:10ben'in data: if 'xiaoqiang:10ben'in data:
data=data.replace('xiaoqiang:10ben','xiaoqiang:11ben') data=data.replace('xiaoqiang:10ben','xiaoqiang:11ben')
new_data+=data new_data+=data
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