PyCharm: Process finished with exit code 0

前端 未结 9 1909
感情败类
感情败类 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:43

    I think there's no problem in your code and you could find your print results (and other outputs) in the tab 5: Debug rather than 4: Run.

    0 讨论(0)
  • 2021-02-13 17:47

    What worked for me when this happened was to go to

    Run --> Edit Configurations --> Execution --> check the box Run with Python Console (which was unchecked).

    0 讨论(0)
  • 2021-02-13 17:48

    Almost all the program(C++/python/java..) return 0 if it runs successful.That isn't specific to pycharm or python.

    In program there is no need to invoke exit function explicitly when it runs success it invoke exit(0) by default, invoke exit(not_zero_num) when runs failed.

    You can also invoke exit function with different code(num) for analysis.

    You can also see https://en.wikipedia.org/wiki/Exit_(system_call) for more details.

    0 讨论(0)
提交回复
热议问题