发布时间:2019-09-06 08:57:35编辑:auto阅读(1855)
#!/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()
上一篇: python的切片实例可代替for循环
下一篇: python操作Excel读写--使用x
47863
46424
37314
34760
29332
25990
24945
19967
19564
18050
5806°
6433°
5947°
5975°
7080°
5926°
5963°
6456°
6418°
7798°