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核心编程源码
(预估有个162文件)
listdir.py
3KB
listdir.py
3KB
descr.diff
1023B
descrPRE25.diff
839B
swhello.java
1KB
Extest2.c
2KB
Extest1.c
852B
loopmake.py
5KB
ushuffle_dbPRE25.py
4KB
ushuffle_db.py
4KB
暂无评论