无论我尝试运行什么代码,它都会显示“ IndexError:列表索引超出范围”

问题描述 投票:0回答:1

so as it shows even the most basic code it doest show any result when I try to run, and debugging tells me this. I cannot find any similar problem online, please help, thank you. I am just starting to learn python and this happens, I have no idea why, it was working fine when I first installed python and pycharm, but then I start a new project, this happens.

pycharm
1个回答
0
投票

欢迎使用StackOverflow。请勿使用图片显示您的代码和错误。

我发现您没有运行aaa.py,相反,您运行的py文件是Unname.py。错误在Unnamed.py中。

如果要运行此.py文件,应使用Run=>Run....运行它,然后找到要运行的文件。或按<ctrl>+<shift>F10运行您编辑的文件。

© www.soinside.com 2019 - 2024. All rights reserved.