搜尋此網誌

2020年5月15日 星期五

About the difference between os.exit () and sys.exit () in python

The sys.exit() the return code can be capture by caller, but os.exit() just end the process.

In the python documentation has below explain.
  • os.exit()

  • sys.exit()

沒有留言:

張貼留言