python核心编程第二版的源码
#!/usr/bin/env python
'readTextFile.py -- read and display text file'
# get filename
fname = raw_input('Enter file name: ')
print
# attempt to open file for reading
try:
fobj = open(fname, 'r')
except IOError, e:
print"*** file open error:", e
else:
# display contents
相关下载链接:
//download.csdn.net/download/yanzi_scu/1352971?utm_source=bbsseo