import sys,ioif len(sys.argv) != 2: print "Please input file path!"else: f1 = io.open(sys.argv[1], "r", encoding="cp936") f2 = io.open(sys.argv[1] + ".new", "w", encoding="utf-8") for line in f1: f2.write(line) f1.close() f2.close()
Post a Comment
No comments:
Post a Comment