結果 : how to return error code in python