#!/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()
本文出自 “我是一只小小鸟” 博客,请务必保留此出处http://2242558.blog.51cto.com/2232558/1545309
原文:http://2242558.blog.51cto.com/2232558/1545309