#字符串转化工具
import sys
f=open(r"D:\test/1.txt","r")
line=f.read();
str=line.splitlines()
for i in range(0,len(str)-1):
str[i]=str[i]+","
for i in str:
print(i,end="")
#字符串转化工具
import sys
f=open(r"D:\test/1.txt","r")
line=f.read();
str=line.splitlines()
for i in range(0,len(str)-1):
str[i]=str[i]+","
for i in str:
print(i,end="")