因此我使用 python -m pydoc myfile.py 但我得到的结果是以下错误: problem in myFile - IndexError: list index out of range我的脚本确实需要更多的参数,例如: python -m pydoc myfile.py argument1 argument2 但随后我收到以下错误: No Python DocumentationNo Python Documentation found for argument1.
N
我想在Python 3.4.3中提前对布尔值进行评估。目前,我的代码引发了一个IndexError异常。说下面这句话if (len(lst)>3) & (lst[3]<2):给出了"IndexError: list index outof range“,在Python3.4.3中有没有办法获得这样的选项?
例如,(gdb) module show obj-template 0x7264b0 "test-entry" Python Exception <class 'IndexError'> list indexout of range: Error occurred in Python command: list index out of range
在这里我可以看到有一个IndexError,但是脚本没有说明哪个是行号