原因:脚本路径(script path)选择错误


解决方案一:

界面右上角选择current file,一劳永逸


解决方案二:

run-->edit configurations-->script path

更多推荐

pycharm运行无输出结果之显示Process finished with exit code 0解决办法