#!/usr/bin/env python # -*- coding: utf-8 -*- if __name__ == '__main__': logname = './new_file.txt' with open(logname,'w') as logfile: with open('./5.txt', 'r') as f: for line in f.readlines(): logfile.write(line.strip()+' ')
#!/usr/bin/env python # -*- coding: utf-8 -*- if __name__ == '__main__': logname = './new_file.txt' with open(logname,'w') as logfile: with open('./5.txt', 'r') as f: for line in f.readlines(): logfile.write(line.strip()+' ')