赞
踩
这段程序的Python实现可以是:with open('txt.txt', 'r') as f: content = f.readlines() content[0] = content[0].strip() + '123' content[1] = content[1].strip() content[1] = content[0] + content[1] del content[2] with open('newtxt.txt', 'w') as f2: for line in content: f
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。