6 Jul
2012
6 Jul
'12
4:24 p.m.
On Fri 06 Jul 2012, Hongwen Qiu wrote:
def count(filename, opening, closing): print opening, closing f = open(sys.argv[1], 'r') Shouldn't this line be f = open(filename, 'r') otherwise the 'filename' parameter will not be used
Oops, you're quite correct. Of course it makes no difference at present, but one day some unlucky person will try to use the function elsewhere. The script was written in a hurry, as you may guess. Pont