python文件读取写入
123.txt23121231233123with open("123.txt",'r') as fp: t=fp.read()print(t)with open("123.txt",'r') as fp: for t in fp: print(t)with open("123.txt",'r') as fp: t=fp.readlines()#替换for _ in t: _=_.replace("2","9") print(_
原创
2021-01-14 17:08:39 ·
99 阅读 ·
0 评论