On Fri, 12 Sep 2014 22:47:57 -0700, daoudimca wrote:
> Dear friends when i used import urllib, re, sys
>
> symbol = sys.argv[1] >>> this function is show -->> symbol = sys.argv[1]
> IndexError: list index out of range
>
> kindly find the solution of this
You are trying to reference more element
On 2014-09-13 05:53:37 +, Chris Angelico said:
If you're using sys.argv, you need to provide arguments to your
script.
Or check sys.argv's length ensuring that an element is there before
accessing it.
--
Andrea
--
https://mail.python.org/mailman/listinfo/python-list
On Sat, Sep 13, 2014 at 3:47 PM, wrote:
> Dear friends when i used
> import urllib, re, sys
>
> symbol = sys.argv[1] >>> this function is show -->> symbol = sys.argv[1]
> IndexError: list index out of range
>
> kindly find the solution of this
If you're using sys.argv, you need to provide argume
Dear friends when i used
import urllib, re, sys
symbol = sys.argv[1] >>> this function is show -->> symbol = sys.argv[1]
IndexError: list index out of range
kindly find the solution of this
--
https://mail.python.org/mailman/listinfo/python-list
#x27;list' object has no attribute 'close'*
""
please help to to find the error.
Seeing that, any of us could tell you thought f0 was a file but it was
actually a list. Looking back up through the code, people found the
definition -- the output of file.readlines, which is
On Fri, 10 Jul 2009 11:57:21 -0400, Dave Angel wrote:
[...]
> Please don' t top-post. Putting your reply out of order makes it harder
> for others to see the sequences of things. Some people top-post
> everything, but on this mailing list (and maybe most), the standard is
> to add to bottom, or
t;printing from file"
for i in range(0, len(add_1),2):
print add_1[i],"", add_1[i+1]
f0.close()
f2.close()*
""
and this programme is givving me this error :
""*Traceback (most recent call last):
File "./temporary1.py", line 24, in
.close()
f2.close()*
""
and this programme is givving me this error :
""*Traceback (most recent call last):
File "./temporary1.py", line 24, in
f0.close()
AttributeError: 'list' object has no attribute 'close'*
""
please help t
On Fri, 10 Jul 2009 10:41:03 +0100, jhinak sen
wrote:
hi,
i am a beginner in python language,
i am trying with this programme :
to find the addition and mean from a data set in a file and writing the
mean
and sum in some other file :
""
*#! /usr/bin/env python
import re
import cPickle as
ite("%s" % repr(add).ljust(7)),f2.write("%s" %
> repr(mean).ljust(7))
> print "printing from file"
> for i in range(0, len(add_1),2):
> print add_1[i],"", add_1[i+1]
>
> f0.close()
> f2.close()*
>
>
> ""
>
""
and this programme is givving me this error :
""*Traceback (most recent call last):
File "./temporary1.py", line 24, in
f0.close()
AttributeError: 'list' object has no attribute 'close'*
""
please help to to find the error
11 matches
Mail list logo