PyCharm: Process finished with exit code 0

前端 未结 9 1910
感情败类
感情败类 2021-02-13 16:51

I am new to PyCharm and I have \'Process finished with exit code 0\' instead of getting (683, 11) as a result (please see attachment), could you guys help me out please? Much ap

9条回答
  •  无人及你
    2021-02-13 17:25

    That is good news! It means that there is no error with your code. You have run it right through and there is nothing wrong with it. Pycharm returns 0 when it has found no errors (plus any output you give it) and returns 1 as well as an error message when it encounters errors.

    Editors and scripts do not behave like the interactive terminal, when you run a function it does not automatically show the the result. You need to actually tell it to do it yourself.

    Generally you just print the results.

    If you use print(data.shape) it should return what you expect with the success message Process finished with exit code 0.

提交回复
热议问题