[Chicago] IndexError:index out of range in sys.argv[1]

Ian Bicking ianb at colorstudy.com
Mon Oct 16 04:39:22 CEST 2006


·ÅÜø ̸ wrote:
> and i try to get this piece of code works,but receive a indexerror:
> thanks if anyone can be helpfull. and here how can we input a text?

sys.argv[1] is the first argument passed to the script via the command
line.  So you probably have to give it a file name.


-- 
Ian Bicking | ianb at colorstudy.com | http://blog.ianbicking.org


More information about the Chicago mailing list