python 字符串替换 本地地址转换为网络地址
发布日期:2021-06-24 15:21:09 浏览次数:4 分类:技术文章

本文共 228 字,大约阅读时间需要 1 分钟。

f = open('MUSICFile.txt','r',encoding='utf8')w = open('MyError.txt','w',encoding='utf8')for lines in f.readlines():    print(lines[2:])    w.write("http:\\\\192.168.1.2"+lines[2:]);         #print(lines,end='')f.close()w.close()

在这里插入图片描述

转载地址:https://blog.csdn.net/weixin_33595571/article/details/106701580 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:Python3 http 服务任意目录 设定访问目录
下一篇:python 查找txt文件中的字符串

发表评论

最新留言

能坚持,总会有不一样的收获!
[***.219.124.196]2024年04月07日 22时38分45秒