#!/usr/bin/python # exact position of python
#!/usr/bin/env python # position of python in enviornment variables
# -*- coding:utf-8 -*- # coding
# Purpose: Reading Files
from sys import argv
script, filename = argv
txt = open(filename)
print "Here's your file %r:" % filename
print txt.read()
print "Type the filename again:"
file_again = raw_input("> ")
txt_again = open(file_again)
print txt_again.read()
Python Exercise #15
最新推荐文章于 2015-08-18 11:45:46 发布