#!/usr/bin/python
#-*-encoding:UTF-8-*-
import sys
if len(sys.argv) < 2:
print('Usage : python sys.argv[0] FileName')
sys.exit(1)
else:
print ('\nunix2dos.py execution successfully!\n')
File=sys.argv[1]
fileobj = open(File,'rU')
try:
allfile = fileobj.read()
finally:
fileobj.close()
阅读(2256) | 评论(0) | 转发(0) |