return 0 ,1, -1

一般0和-1或者0和1使用

0和-1使用时:
0一般表示成功执行
-1一般表示不成功

0和1使用时:
1真
0假

原文地址:https://www.cnblogs.com/gaohai/p/5764161.html