如何用python把一个txt文件中所有逗号——,替换成空格?就是a,b之间就是去掉逗号,但保持点距离
读取open文件。然后read读取内容。用replace替换内容。write写回文件
new__string = old__string.replace(' ', '_')