Commit 4162fe7c by BellCodeEditor

save project

parent c43feef2
Showing with 4 additions and 2 deletions
...@@ -7,5 +7,6 @@ with open(r'C:\Users\Administrator.SC2206-2023UCRO\Desktop','w',encoding='utf-8' ...@@ -7,5 +7,6 @@ with open(r'C:\Users\Administrator.SC2206-2023UCRO\Desktop','w',encoding='utf-8'
for data in file: for data in file:
if "小强:13" in data: if "小强:13" in data:
print("数据在") print("数据在")
new_data +=data
with open(r'C:\Users\Administrator.SC2206-2023UCRO\Desktop','w',encoding='utf-8') as filel:
filel.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