标签:bin nbsp log __name__ bsp read /usr usr color
#!/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()+‘\n‘)
标签:bin nbsp log __name__ bsp read /usr usr color
原文地址:https://www.cnblogs.com/drizzlewithwind/p/8954698.html