直接上代码:
1 2 3 4 5 6 7 8 9 10 11 12 |
with open("./test.txt","r",encoding="utf-8") as f: lines = f.readlines() with open("./fileread.txt","w",encoding="utf-8") as f_w: for line in lines: if "taste" in line: line = line.replace("taste","tasting") f_w.write(line) |
思想:
读一行写一行。
这种方法用于docker安装的alist不太友好
不错,感谢
就是回调地址是那个?,你的另一篇文章的回调地址还是用不了!
Thanks for finally writing about > Typecho中的Widget_Options用法-马春杰杰 < Loved it!
大佬,没看懂,回调地址是什么?
感谢您与我们分享此类文章。
感谢分享,文章不错
很方便诶,但下载了以后网页图片的顺序会不会乱啊