PyCharm: Process finished with exit code 0

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

提交回复
热议问题