摘要: # 打开文件并读取内容 with open('/etc/network/interfaces.d/eth0', 'r') as file: file_content = file.read() # 将所有的字符串192.168.1.91替换为192.168.5.91 new_content = fi 阅读全文
posted @ 2023-11-14 17:27 王者之心的笔记 阅读(18) 评论(0) 推荐(0)