Commit 0d0f5b78 by BellCodeEditor

auto save

parent 57f856ab
Showing with 6 additions and 3 deletions
......@@ -9,5 +9,7 @@ file.close()
file=open(r'C:\Users\makcoo\Desktop\test.txt','r',encoding='utf-8')
for i in file:
if '国' in i:
print("所查找内容在文件里")
\ No newline at end of file
if '国庆' in i:
new=i.replace('国庆','中秋')
new_data=new_data+new
print(new_data)
\ No newline at end of file
++ "b/\345\216\273\351\227\256\344\272\272\344\275\223\344\270\216\343\200\202py"
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