51CTO博客开发
fd = open(r'1.txt', 'r+') #用r+打开 fd.seek(1) #找到要替换的位置 fd.write('z')  
Copyright © 2005-2025 51CTO.COM 版权所有 京ICP证060544号