python核心编程源码
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 to the screen for eachLine in fobj: print eachLine, fobj.close()
下载地址
用户评论
很好,非常感谢
不错。正是我需要的
不错 不错 非常适合初学者
正在看python核心编程这本书,有配套源码方便多了,多谢分享
谢谢, 正是我需要的
真的很不错,对照书很好
例子不错,适合新手
非常好的资源
是配套源代码,重复的tar。
python代码例子教程,good